summaryrefslogtreecommitdiff
path: root/cli/options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-19 10:12:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-19 10:12:22 +0200
commit0b4fcbeae101f2a5171217f65bab9c6545e853ba (patch)
treed4a80d33799ba874c8ab4ff26185a9bccce9b6ce /cli/options.cxx
parent89ce153311d9163bbc356927346c0b30e158a75f (diff)
Add option description that can be examined at runtime.
New option: --generate-description.
Diffstat (limited to 'cli/options.cxx')
-rw-r--r--cli/options.cxx10
1 files changed, 10 insertions, 0 deletions
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"] =