From 7e9cb673ccfc77c5871292aa5491fc2c2dc2a663 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 Nov 2015 12:22:19 +0200 Subject: Add --include-base-last option --- cli/options.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/options.cxx') diff --git a/cli/options.cxx b/cli/options.cxx index 0ac1b4c..7d7f9cb 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -591,6 +591,7 @@ options () option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -697,6 +698,7 @@ options (int& argc, option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -806,6 +808,7 @@ options (int start, option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -915,6 +918,7 @@ options (int& argc, option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -1026,6 +1030,7 @@ options (int start, option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -1133,6 +1138,7 @@ options (::cli::scanner& s, option_length_specified_ (false), ansi_color_ (), exclude_base_ (), + include_base_last_ (), class__ (), class__specified_ (false), docvar_ (), @@ -1272,6 +1278,9 @@ print_usage (::std::ostream& os) os << "--exclude-base Exclude base class information from usage and" << ::std::endl << " documentation." << ::std::endl; + os << "--include-base-last Include base class information after derived for" << ::std::endl + << " usage and documentation." << ::std::endl; + os << "--class Generate the man page or HTML documentation only" << ::std::endl << " for the options class." << ::std::endl; @@ -1447,6 +1456,8 @@ struct _cli_options_map_init &::cli::thunk< options, bool, &options::ansi_color_ >; _cli_options_map_["--exclude-base"] = &::cli::thunk< options, bool, &options::exclude_base_ >; + _cli_options_map_["--include-base-last"] = + &::cli::thunk< options, bool, &options::include_base_last_ >; _cli_options_map_["--class"] = &::cli::thunk< options, std::vector, &options::class__, &options::class__specified_ >; -- cgit v1.1