summaryrefslogtreecommitdiff
path: root/cli/options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:31:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-04 09:31:37 +0200
commit9f995b41e72b25c0c7ffe8e2568e166d86f27bcc (patch)
tree06a8854080742ca256c3dc4d90b4c910864bf8d4 /cli/options.cxx
parentbeab8baab8a7f727f5ba65ecbd7e11decea18112 (diff)
Add --{hxx,ixx,cxx}-suffix options
Diffstat (limited to 'cli/options.cxx')
-rw-r--r--cli/options.cxx30
1 files changed, 24 insertions, 6 deletions
diff --git a/cli/options.cxx b/cli/options.cxx
index c2ad4fd..c38ca35 100644
--- a/cli/options.cxx
+++ b/cli/options.cxx
@@ -167,8 +167,11 @@ options (int argc,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ suppress_inline_ (),
output_dir_ (),
- suppress_inline_ ()
+ hxx_suffix_ (".hxx"),
+ ixx_suffix_ (".ixx"),
+ cxx_suffix_ (".cxx")
{
_parse (1, argc, argv, opt, arg);
}
@@ -181,8 +184,11 @@ options (int start,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ suppress_inline_ (),
output_dir_ (),
- suppress_inline_ ()
+ hxx_suffix_ (".hxx"),
+ ixx_suffix_ (".ixx"),
+ cxx_suffix_ (".cxx")
{
_parse (start, argc, argv, opt, arg);
}
@@ -195,8 +201,11 @@ options (int argc,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ suppress_inline_ (),
output_dir_ (),
- suppress_inline_ ()
+ hxx_suffix_ (".hxx"),
+ ixx_suffix_ (".ixx"),
+ cxx_suffix_ (".cxx")
{
end = _parse (1, argc, argv, opt, arg);
}
@@ -210,8 +219,11 @@ options (int start,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ suppress_inline_ (),
output_dir_ (),
- suppress_inline_ ()
+ hxx_suffix_ (".hxx"),
+ ixx_suffix_ (".ixx"),
+ cxx_suffix_ (".cxx")
{
end = _parse (start, argc, argv, opt, arg);
}
@@ -230,10 +242,16 @@ struct _cli_options_map_init
&::cli::thunk<options, bool, &options::help_>;
_cli_options_map_["--version"] =
&::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_["--output-dir"] =
+ &::cli::thunk<options, std::string, &options::output_dir_>;
+ _cli_options_map_["--hxx-suffix"] =
+ &::cli::thunk<options, std::string, &options::hxx_suffix_>;
+ _cli_options_map_["--ixx-suffix"] =
+ &::cli::thunk<options, std::string, &options::ixx_suffix_>;
+ _cli_options_map_["--cxx-suffix"] =
+ &::cli::thunk<options, std::string, &options::cxx_suffix_>;
}
} _cli_options_map_init_;