diff options
Diffstat (limited to 'common/command.cc')
-rw-r--r-- | common/command.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/command.cc b/common/command.cc index 54111130..d5639e9a 100644 --- a/common/command.cc +++ b/common/command.cc @@ -84,6 +84,7 @@ po::options_description CommandHandler::getGeneralOptions() po::options_description general("General options"); general.add_options()("help,h", "show help"); general.add_options()("verbose,v", "verbose output"); + general.add_options()("quiet,q", "quiet mode, only errors displayed"); general.add_options()("debug", "debug output"); general.add_options()("force,f", "keep running after errors"); #ifndef NO_GUI @@ -119,6 +120,10 @@ void CommandHandler::setupContext(Context *ctx) ctx->debug = true; } + if (vm.count("quiet")) { + log_quiet_warnings = true; + } + if (vm.count("force")) { ctx->force = true; } |