From cc62c09409021582d8b5ffe3b5c9d393524fd260 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 Oct 2009 15:45:06 +0200 Subject: Add usage information --- cli/generator.cxx | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'cli/generator.cxx') diff --git a/cli/generator.cxx b/cli/generator.cxx index 801f7e5..89270bb 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -31,6 +31,64 @@ using namespace cutl; using semantics::path; +void generator:: +usage () +{ + ostream& e (cerr); + + e << "--output-dir | -o " << endl + << " Write generated files to ." << endl; + + e << "--suppress-inline" << endl + << " Generate all functions non-inline." << endl; + + e << "--hxx-suffix " << endl + << " Use instead of the default '.hxx' to\n" + << " construct the name of the generated header file." + << endl; + + e << "--ixx-suffix " << endl + << " Use instead of the default '.ixx' to\n" + << " construct the name of the generated inline file." + << endl; + + e << "--cxx-suffix " << endl + << " Use instead of the default '.cxx' to\n" + << " construct the name of the generated source file." + << endl; + + e << "--option-prefix " << endl + << " Use instead of the default '-' as an\n" + << " option prefix." + << endl; + + e << "--option-separator " << endl + << " Use instead of the default '--' as an\n" + << " optional separator between options and arguments." + << endl; + + e << "--include-with-brackets" << endl + << " Use angle brackets (<>) instead of quotes (\"\") in\n" + << " generated #include directives." + << endl; + + e << "--include-prefix " << endl + << " Add to generated #include directive\n" + << " paths." + << endl; + + e << "--guard-prefix " << endl + << " Add to generated header inclusion guards." + << endl; + + e << "--reserved-name " << endl + << " Add to the list of names that should not\n" + << " be used as identifiers. The name can optionally\n" + << " be followed by '=' and the replacement name that\n" + << " should be used instead." + << endl; +} + namespace { static char const header[] = -- cgit v1.1