aboutsummaryrefslogtreecommitdiffstats
path: root/common/command.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-09 13:28:21 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-09 13:28:21 +0200
commit6b6a0c6d3c0d39afecd3c0c6bd0e0a4c006adc5f (patch)
treee0b122db2bdce454c006d1eecf9e7c64858df402 /common/command.cc
parent8420cb4c80521d100d5f92155b6295f342dae3e3 (diff)
downloadnextpnr-6b6a0c6d3c0d39afecd3c0c6bd0e0a4c006adc5f.tar.gz
nextpnr-6b6a0c6d3c0d39afecd3c0c6bd0e0a4c006adc5f.tar.bz2
nextpnr-6b6a0c6d3c0d39afecd3c0c6bd0e0a4c006adc5f.zip
Added quiet mode for logging
Diffstat (limited to 'common/command.cc')
-rw-r--r--common/command.cc5
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;
}