diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-21 12:02:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-21 12:02:15 +0200 |
commit | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (patch) | |
tree | 0e66080e788c61651ae44de62a6d722bef8a0fe1 /cli/options.cxx | |
parent | 7b04b179fb7831087474d9cba104fa6076e31c47 (diff) |
Add metadata
Diffstat (limited to 'cli/options.cxx')
-rw-r--r-- | cli/options.cxx | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/cli/options.cxx b/cli/options.cxx index 1e782e3..cc22a35 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -628,7 +628,8 @@ namespace cli options:: options () -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -767,7 +768,8 @@ options (int& argc, bool erase, ::cli::unknown_mode opt, ::cli::unknown_mode arg) -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -909,7 +911,8 @@ options (int start, bool erase, ::cli::unknown_mode opt, ::cli::unknown_mode arg) -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -1051,7 +1054,8 @@ options (int& argc, bool erase, ::cli::unknown_mode opt, ::cli::unknown_mode arg) -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -1195,7 +1199,8 @@ options (int start, bool erase, ::cli::unknown_mode opt, ::cli::unknown_mode arg) -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -1335,7 +1340,8 @@ options:: options (::cli::scanner& s, ::cli::unknown_mode opt, ::cli::unknown_mode arg) -: help_ (), +: build2_metadata_ (), + help_ (), version_ (), include_path_ (), include_path_specified_ (false), @@ -1477,6 +1483,8 @@ print_usage (::std::ostream& os, ::cli::usage_para p) if (p == ::cli::usage_para::text) os << ::std::endl; + os << "--build2-metadata" << std::endl; + os << "--help Print usage information and exit." << ::std::endl; os << "--version Print version and exit." << ::std::endl; @@ -1725,6 +1733,8 @@ struct _cli_options_map_init { _cli_options_map_init () { + _cli_options_map_["--build2-metadata"] = + &::cli::thunk< options, bool, &options::build2_metadata_ >; _cli_options_map_["--help"] = &::cli::thunk< options, bool, &options::help_ >; _cli_options_map_["--version"] = |