aboutsummaryrefslogtreecommitdiff
path: root/odb/options.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-03-26 16:56:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-03-26 16:56:05 +0200
commiteb11d614956030dd153c8199a9a173ffd17ddc97 (patch)
tree69b1c73b77f7e59b4e036021941b20d553a3315a /odb/options.cxx
parent161efedd3ddca75c1cd3ad7f8592653c5070614e (diff)
Disable tracing by default
Provide an option to enable it.
Diffstat (limited to 'odb/options.cxx')
-rw-r--r--odb/options.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/options.cxx b/odb/options.cxx
index d0e80b4..8226e3f 100644
--- a/odb/options.cxx
+++ b/odb/options.cxx
@@ -490,6 +490,7 @@ options (int& argc,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ trace_ (),
options_file_ ()
{
::cli::argv_scanner s (argc, argv, erase);
@@ -505,6 +506,7 @@ options (int start,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ trace_ (),
options_file_ ()
{
::cli::argv_scanner s (start, argc, argv, erase);
@@ -520,6 +522,7 @@ options (int& argc,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ trace_ (),
options_file_ ()
{
::cli::argv_scanner s (argc, argv, erase);
@@ -537,6 +540,7 @@ options (int start,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ trace_ (),
options_file_ ()
{
::cli::argv_scanner s (start, argc, argv, erase);
@@ -550,6 +554,7 @@ options (::cli::scanner& s,
::cli::unknown_mode arg)
: help_ (),
version_ (),
+ trace_ (),
options_file_ ()
{
_parse (s, opt, arg);
@@ -562,6 +567,8 @@ print_usage (::std::ostream& os)
os << "--version Print version and exit." << ::std::endl;
+ os << "--trace Trace the compilation process." << ::std::endl;
+
os << "--options-file <file> Read additional options from <file> with each option" << ::std::endl
<< " appearing on a separate line optionally followed by space" << ::std::endl
<< " and an option value." << ::std::endl;
@@ -581,6 +588,8 @@ struct _cli_options_map_init
&::cli::thunk< options, bool, &options::help_ >;
_cli_options_map_["--version"] =
&::cli::thunk< options, bool, &options::version_ >;
+ _cli_options_map_["--trace"] =
+ &::cli::thunk< options, bool, &options::trace_ >;
_cli_options_map_["--options-file"] =
&::cli::thunk< options, std::string, &options::options_file_ >;
}