From 6b6a0c6d3c0d39afecd3c0c6bd0e0a4c006adc5f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 9 Aug 2018 13:28:21 +0200 Subject: Added quiet mode for logging --- common/command.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common/command.cc') 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; } -- cgit v1.2.3