From beab8baab8a7f727f5ba65ecbd7e11decea18112 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Oct 2009 09:00:19 +0200 Subject: Add --suppress-inline option --- cli/options.cxx | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'cli/options.cxx') diff --git a/cli/options.cxx b/cli/options.cxx index 6aba013..c2ad4fd 100644 --- a/cli/options.cxx +++ b/cli/options.cxx @@ -4,27 +4,6 @@ #include "options.hxx" -// options -// - -bool const& options:: -help () const -{ - return help_; -} - -bool const& options:: -version () const -{ - return version_; -} - -std::string const& options:: -output_dir () const -{ - return output_dir_; -} - #include #include #include @@ -188,7 +167,8 @@ options (int argc, ::cli::unknown_mode arg) : help_ (), version_ (), - output_dir_ () + output_dir_ (), + suppress_inline_ () { _parse (1, argc, argv, opt, arg); } @@ -201,7 +181,8 @@ options (int start, ::cli::unknown_mode arg) : help_ (), version_ (), - output_dir_ () + output_dir_ (), + suppress_inline_ () { _parse (start, argc, argv, opt, arg); } @@ -214,7 +195,8 @@ options (int argc, ::cli::unknown_mode arg) : help_ (), version_ (), - output_dir_ () + output_dir_ (), + suppress_inline_ () { end = _parse (1, argc, argv, opt, arg); } @@ -228,7 +210,8 @@ options (int start, ::cli::unknown_mode arg) : help_ (), version_ (), - output_dir_ () + output_dir_ (), + suppress_inline_ () { end = _parse (start, argc, argv, opt, arg); } @@ -249,6 +232,8 @@ struct _cli_options_map_init &::cli::thunk; _cli_options_map_["--output-dir"] = &::cli::thunk; + _cli_options_map_["--suppress-inline"] = + &::cli::thunk; } } _cli_options_map_init_; -- cgit v1.1