diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-05-24 20:25:29 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-05-24 20:25:37 +0200 |
commit | fc4038fadea521470b2503389ddea28bca649ecd (patch) | |
tree | 33aa876d673c0f9c548a33d5dfc2c57eb67675e9 | |
parent | fcb5cdcc9ff2e8e1aa9dec5c665efa35b9931b03 (diff) | |
download | Nim-fc4038fadea521470b2503389ddea28bca649ecd.tar.gz |
allow to check verbosity level via compileOption
-rw-r--r-- | compiler/commands.nim | 1 |
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 = |