diff options
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r-- | cli/generator.cxx | 58 |
1 files changed, 58 insertions, 0 deletions
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 <dir>" << endl + << " Write generated files to <dir>." << endl; + + e << "--suppress-inline" << endl + << " Generate all functions non-inline." << endl; + + e << "--hxx-suffix <suffix>" << endl + << " Use <suffix> instead of the default '.hxx' to\n" + << " construct the name of the generated header file." + << endl; + + e << "--ixx-suffix <suffix>" << endl + << " Use <suffix> instead of the default '.ixx' to\n" + << " construct the name of the generated inline file." + << endl; + + e << "--cxx-suffix <suffix>" << endl + << " Use <suffix> instead of the default '.cxx' to\n" + << " construct the name of the generated source file." + << endl; + + e << "--option-prefix <prefix>" << endl + << " Use <prefix> instead of the default '-' as an\n" + << " option prefix." + << endl; + + e << "--option-separator <sep>" << endl + << " Use <sep> 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 <prefix>" << endl + << " Add <prefix> to generated #include directive\n" + << " paths." + << endl; + + e << "--guard-prefix <prefix>" << endl + << " Add <prefix> to generated header inclusion guards." + << endl; + + e << "--reserved-name <name>" << endl + << " Add <name> 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[] = |