diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-08 15:35:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-11-08 15:35:19 +0200 |
commit | 369470005607b9501a769be0ae2a4c79c90bad84 (patch) | |
tree | 459030d6b0ca4f1799d0313a5e63fc24038cd34d /cli/cli.cxx | |
parent | 907b5fed58d53bbb5e25c590df97f01a0ac93733 (diff) |
Implement usage generation
Also migrate the CLI compiler usage handling to the auto-generated version.
Diffstat (limited to 'cli/cli.cxx')
-rw-r--r-- | cli/cli.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cli/cli.cxx b/cli/cli.cxx index a8e7fae..761b9a9 100644 --- a/cli/cli.cxx +++ b/cli/cli.cxx @@ -9,7 +9,6 @@ #include <cutl/compiler/code-stream.hxx> -#include "usage.hxx" #include "options.hxx" #include "parser.hxx" #include "generator.hxx" @@ -48,17 +47,7 @@ int main (int argc, char* argv[]) << endl << "Options:" << endl; - compiler::ostream_filter<usage_indenter, char> filt (e); - - e << "--help" << endl - << " Print usage information and exit." - << endl; - - e << "--version" << endl - << " Print version and exit." - << endl; - - generator::usage (); + options::print_usage (e); return 0; } |