support --hint:all:off --hint:x (ditto with --warnings + friends) (#17852)
* select all hints via `--hint:all:on|off`, etc * simplify code with setutils * address comment
This commit is contained in:
parent
92cb765714
commit
7d5e6b0169
5 changed files with 45 additions and 44 deletions
|
|
@ -48,14 +48,15 @@ Advanced options:
|
|||
--spellSuggest|:num show at most `num >= 0` spelling suggestions on typos.
|
||||
if `num` is not specified (or `auto`), return
|
||||
an implementation defined set of suggestions.
|
||||
-w:on|off|list, --warnings:on|off|list
|
||||
turn all warnings on|off or list all available
|
||||
--warning:X:on|off turn specific warning X on|off.
|
||||
`warning:X` means `warning:X:on`, as with similar flags.
|
||||
--hints:on|off|list turn all hints on|off or list all available
|
||||
--hint:X:on|off turn specific hint X on|off.
|
||||
--warningAsError:X:on|off turn specific warning X into an error on|off
|
||||
--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".
|
||||
--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.
|
||||
--warning:X:on|off ditto
|
||||
--warningAsError:X:on|off ditto
|
||||
--styleCheck:off|hint|error
|
||||
produce hints or errors for Nim identifiers that
|
||||
do not adhere to Nim's official style guide
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue