summaryrefslogtreecommitdiff
path: root/cli/options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-11 10:07:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-11 10:07:12 +0200
commit8eef1041c8c28a3c4c0528c072a431db2886764b (patch)
tree59e44885f9a9085415fd549e5d4393b6de8fb231 /cli/options.cxx
parent67a2efeebcbbb8e6babd912e203f58b3eddfca8f (diff)
Add support for --output-{prefix,suffix} options
Diffstat (limited to 'cli/options.cxx')
-rw-r--r--cli/options.cxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/cli/options.cxx b/cli/options.cxx
index 3e7dbcc..118d8ee 100644
--- a/cli/options.cxx
+++ b/cli/options.cxx
@@ -640,6 +640,10 @@ options ()
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -751,6 +755,10 @@ options (int& argc,
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -865,6 +873,10 @@ options (int start,
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -979,6 +991,10 @@ options (int& argc,
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -1095,6 +1111,10 @@ options (int start,
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -1207,6 +1227,10 @@ options (::cli::scanner& s,
man_epilogue_file_specified_ (false),
html_epilogue_file_ (),
html_epilogue_file_specified_ (false),
+ output_prefix_ (),
+ output_prefix_specified_ (false),
+ output_suffix_ (),
+ output_suffix_specified_ (false),
hxx_suffix_ (".hxx"),
hxx_suffix_specified_ (false),
ixx_suffix_ (".ixx"),
@@ -1382,6 +1406,12 @@ print_usage (::std::ostream& os, ::cli::usage_para p)
os << "--html-epilogue-file <file> Insert the content of <file> at the end of the" << ::std::endl
<< " generated HTML file." << ::std::endl;
+ os << "--output-prefix <prefix> Add <prefix> at the beginning of the generated" << ::std::endl
+ << " output file name(s)." << ::std::endl;
+
+ os << "--output-suffix <suffix> Add <suffix> at the end of the generated output" << ::std::endl
+ << " file name(s)." << ::std::endl;
+
os << "--hxx-suffix <suffix> Use <suffix> instead of the default '.hxx' to" << ::std::endl
<< " construct the name of the generated header file." << ::std::endl;
@@ -1572,6 +1602,12 @@ struct _cli_options_map_init
_cli_options_map_["--html-epilogue-file"] =
&::cli::thunk< options, std::string, &options::html_epilogue_file_,
&options::html_epilogue_file_specified_ >;
+ _cli_options_map_["--output-prefix"] =
+ &::cli::thunk< options, std::string, &options::output_prefix_,
+ &options::output_prefix_specified_ >;
+ _cli_options_map_["--output-suffix"] =
+ &::cli::thunk< options, std::string, &options::output_suffix_,
+ &options::output_suffix_specified_ >;
_cli_options_map_["--hxx-suffix"] =
&::cli::thunk< options, std::string, &options::hxx_suffix_,
&options::hxx_suffix_specified_ >;