From 0b4fcbeae101f2a5171217f65bab9c6545e853ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Nov 2010 10:12:22 +0200 Subject: Add option description that can be examined at runtime. New option: --generate-description. --- cli/options.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/options.cxx') diff --git a/cli/options.cxx b/cli/options.cxx index 093fd55..c8a83df 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -527,6 +527,7 @@ options (int& argc, output_dir_ (), generate_modifier_ (), generate_specifier_ (), + generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), suppress_undocumented_ (), @@ -572,6 +573,7 @@ options (int start, output_dir_ (), generate_modifier_ (), generate_specifier_ (), + generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), suppress_undocumented_ (), @@ -617,6 +619,7 @@ options (int& argc, output_dir_ (), generate_modifier_ (), generate_specifier_ (), + generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), suppress_undocumented_ (), @@ -664,6 +667,7 @@ options (int start, output_dir_ (), generate_modifier_ (), generate_specifier_ (), + generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), suppress_undocumented_ (), @@ -707,6 +711,7 @@ options (::cli::scanner& s, output_dir_ (), generate_modifier_ (), generate_specifier_ (), + generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), suppress_undocumented_ (), @@ -755,6 +760,9 @@ print_usage (::std::ostream& os) os << "--generate-specifier Generate functions for determining whether the" << ::std::endl << " option was specified on the command line." << ::std::endl; + os << "--generate-description Generate the option description list that can be" << ::std::endl + << " examined at runtime." << ::std::endl; + os << "--generate-file-scanner Generate the 'argv_file_scanner' implementation." << ::std::endl; os << "--suppress-inline Generate all functions non-inline." << ::std::endl; @@ -857,6 +865,8 @@ struct _cli_options_map_init &::cli::thunk< options, bool, &options::generate_modifier_ >; _cli_options_map_["--generate-specifier"] = &::cli::thunk< options, bool, &options::generate_specifier_ >; + _cli_options_map_["--generate-description"] = + &::cli::thunk< options, bool, &options::generate_description_ >; _cli_options_map_["--generate-file-scanner"] = &::cli::thunk< options, bool, &options::generate_file_scanner_ >; _cli_options_map_["--suppress-inline"] = -- cgit v1.1