From 8eef1041c8c28a3c4c0528c072a431db2886764b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jan 2016 10:07:12 +0200 Subject: Add support for --output-{prefix,suffix} options --- cli/options.cxx | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'cli/options.cxx') 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 Insert the content of at the end of the" << ::std::endl << " generated HTML file." << ::std::endl; + os << "--output-prefix Add at the beginning of the generated" << ::std::endl + << " output file name(s)." << ::std::endl; + + os << "--output-suffix Add at the end of the generated output" << ::std::endl + << " file name(s)." << ::std::endl; + os << "--hxx-suffix Use 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_ >; -- cgit v1.1