diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-15 11:00:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-15 11:00:52 +0200 |
commit | e2605ba3c9ca35524b0c86e74ffa37bee548aef3 (patch) | |
tree | 5ff3f5145fa9731895e2bf470efb7c94585331a8 /cli/options.cxx | |
parent | 5473563e9af0abbc81a3cfd7079c34fbc75dfdb4 (diff) |
Add support for specifying output stream type (--stream-type)
Diffstat (limited to 'cli/options.cxx')
-rw-r--r-- | cli/options.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/options.cxx b/cli/options.cxx index ed9645b..0b79417 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -558,6 +558,7 @@ options () generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -603,6 +604,7 @@ options (int& argc, generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -651,6 +653,7 @@ options (int start, generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -699,6 +702,7 @@ options (int& argc, generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -749,6 +753,7 @@ options (int start, generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -795,6 +800,7 @@ options (::cli::scanner& s, generate_description_ (), generate_file_scanner_ (), suppress_inline_ (), + ostream_type_ ("::std::ostream"), suppress_undocumented_ (), suppress_usage_ (), long_usage_ (), @@ -852,6 +858,10 @@ print_usage (::std::ostream& os) os << "--suppress-inline Generate all functions non-inline." << ::std::endl; + os << "--ostream-type <type> Output stream type instead of the default" << ::std::endl + << " 'std::ostream' that should be used to print usage" << ::std::endl + << " and exception information." << ::std::endl; + os << "--suppress-undocumented Suppress the generation of documentation entries" << ::std::endl << " for undocumented options." << ::std::endl; @@ -964,6 +974,8 @@ struct _cli_options_map_init &::cli::thunk< options, bool, &options::generate_file_scanner_ >; _cli_options_map_["--suppress-inline"] = &::cli::thunk< options, bool, &options::suppress_inline_ >; + _cli_options_map_["--ostream-type"] = + &::cli::thunk< options, std::string, &options::ostream_type_ >; _cli_options_map_["--suppress-undocumented"] = &::cli::thunk< options, bool, &options::suppress_undocumented_ >; _cli_options_map_["--suppress-usage"] = |