summaryrefslogtreecommitdiff
path: root/cli/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-11 15:45:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-11 15:45:06 +0200
commitcc62c09409021582d8b5ffe3b5c9d393524fd260 (patch)
tree67455202970e8ec4520f5c06e31c5a28a5180f33 /cli/generator.cxx
parente228bb3ed878e071618b0f31856770c60cdf48df (diff)
Add usage information
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r--cli/generator.cxx58
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[] =