summaryrefslogtreecommitdiffstats
path: root/cli/options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:00:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:00:19 +0200
commitbeab8baab8a7f727f5ba65ecbd7e11decea18112 (patch)
treeac06c0ee6e7e92e3853f717e47143d3f3d5d49ff /cli/options.cxx
parent0f637644070c796d4a1561dc38dceb1de15cd577 (diff)
downloadcli-beab8baab8a7f727f5ba65ecbd7e11decea18112.tar.gz
cli-beab8baab8a7f727f5ba65ecbd7e11decea18112.tar.xz
cli-beab8baab8a7f727f5ba65ecbd7e11decea18112.zip
Add --suppress-inline option
Diffstat (limited to 'cli/options.cxx')
-rw-r--r--cli/options.cxx35
1 files changed, 10 insertions, 25 deletions
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 <string>
#include <vector>
#include <ostream>
@@ -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<options, bool, &options::version_>;
_cli_options_map_["--output-dir"] =
&::cli::thunk<options, std::string, &options::output_dir_>;
+ _cli_options_map_["--suppress-inline"] =
+ &::cli::thunk<options, bool, &options::suppress_inline_>;
}
} _cli_options_map_init_;