summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-24 20:25:29 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-24 20:25:37 +0200
commitfc4038fadea521470b2503389ddea28bca649ecd (patch)
tree33aa876d673c0f9c548a33d5dfc2c57eb67675e9
parentfcb5cdcc9ff2e8e1aa9dec5c665efa35b9931b03 (diff)
downloadNim-fc4038fadea521470b2503389ddea28bca649ecd.tar.gz
allow to check verbosity level via compileOption
-rw-r--r--compiler/commands.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index aa155ea88..dc04993a7 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -213,6 +213,7 @@ proc testCompileOptionArg*(switch, arg: string, info: TLineInfo): bool =
     of "size": result = contains(gOptions, optOptimizeSize)
     of "none": result = gOptions * {optOptimizeSpeed, optOptimizeSize} == {}
     else: localError(info, errNoneSpeedOrSizeExpectedButXFound, arg)
+  of "verbosity": result = $gVerbosity == arg
   else: invalidCmdLineOption(passCmd1, switch, info)
 
 proc testCompileOption*(switch: string, info: TLineInfo): bool =