parent
1b3c0f142d
commit
40ec8184ad
2 changed files with 4 additions and 1 deletions
|
|
@ -217,6 +217,8 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
|
||||||
localError(conf, info, errOnOrOffExpectedButXFound % arg)
|
localError(conf, info, errOnOrOffExpectedButXFound % arg)
|
||||||
else:
|
else:
|
||||||
let isOn = val == "on"
|
let isOn = val == "on"
|
||||||
|
if isOn and id.normalize == "all":
|
||||||
|
localError(conf, info, "only 'all:off' is supported")
|
||||||
for n in notes:
|
for n in notes:
|
||||||
if n notin conf.cmdlineNotes or pass == passCmd1:
|
if n notin conf.cmdlineNotes or pass == passCmd1:
|
||||||
if pass == passCmd1: incl(conf.cmdlineNotes, n)
|
if pass == passCmd1: incl(conf.cmdlineNotes, n)
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,8 @@ Advanced options:
|
||||||
--hints:on|off|list. `on|off` enables or disables hints.
|
--hints:on|off|list. `on|off` enables or disables hints.
|
||||||
`list` reports which hints are selected.
|
`list` reports which hints are selected.
|
||||||
--hint:X:on|off turn specific hint X on|off. `hint:X` means `hint:X:on`,
|
--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
|
--hintAsError:X:on|off turn specific hint X into an error on|off
|
||||||
-w:on|off|list, --warnings:on|off|list
|
-w:on|off|list, --warnings:on|off|list
|
||||||
same as `--hints` but for warnings.
|
same as `--hints` but for warnings.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue