mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 18:11:44 +00:00
@@ -217,6 +217,8 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
|
||||
localError(conf, info, errOnOrOffExpectedButXFound % arg)
|
||||
else:
|
||||
let isOn = val == "on"
|
||||
if isOn and id.normalize == "all":
|
||||
localError(conf, info, "only 'all:off' is supported")
|
||||
for n in notes:
|
||||
if n notin conf.cmdlineNotes or pass == passCmd1:
|
||||
if pass == passCmd1: incl(conf.cmdlineNotes, n)
|
||||
|
||||
@@ -51,7 +51,8 @@ Advanced options:
|
||||
--hints:on|off|list. `on|off` enables or disables hints.
|
||||
`list` reports which hints are selected.
|
||||
--hint:X:on|off turn specific hint X on|off. `hint:X` means `hint:X:on`,
|
||||
as with similar flags. `all` can be used for "all hints".
|
||||
as with similar flags. `all` is the set of all hints
|
||||
(only `all:off` is supported).
|
||||
--hintAsError:X:on|off turn specific hint X into an error on|off
|
||||
-w:on|off|list, --warnings:on|off|list
|
||||
same as `--hints` but for warnings.
|
||||
|
||||
Reference in New Issue
Block a user