From 369470005607b9501a769be0ae2a4c79c90bad84 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Nov 2009 15:35:19 +0200 Subject: Implement usage generation Also migrate the CLI compiler usage handling to the auto-generated version. --- cli/cli.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cli/cli.cxx') 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 -#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 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; } -- cgit v1.1