allow to check verbosity level via compileOption
This commit is contained in:
parent
fcb5cdcc9f
commit
fc4038fade
1 changed files with 1 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue