From eb11d614956030dd153c8199a9a173ffd17ddc97 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Mar 2010 16:56:05 +0200 Subject: Disable tracing by default Provide an option to enable it. --- odb/options.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/options.cxx') 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 Read additional options from 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_ >; } -- cgit v1.1