Add 'usages' option to the --stylechecks error msg (#19759)
This commit is contained in:
parent
2ecae20c43
commit
278ecad973
1 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ const
|
||||||
errInvalidCmdLineOption = "invalid command line option: '$1'"
|
errInvalidCmdLineOption = "invalid command line option: '$1'"
|
||||||
errOnOrOffExpectedButXFound = "'on' or 'off' expected, but '$1' found"
|
errOnOrOffExpectedButXFound = "'on' or 'off' expected, but '$1' found"
|
||||||
errOnOffOrListExpectedButXFound = "'on', 'off' or 'list' expected, but '$1' found"
|
errOnOffOrListExpectedButXFound = "'on', 'off' or 'list' expected, but '$1' found"
|
||||||
errOffHintsError = "'off', 'hint' or 'error' expected, but '$1' found"
|
errOffHintsError = "'off', 'hint', 'error' or 'usages' expected, but '$1' found"
|
||||||
|
|
||||||
proc invalidCmdLineOption(conf: ConfigRef; pass: TCmdLinePass, switch: string, info: TLineInfo) =
|
proc invalidCmdLineOption(conf: ConfigRef; pass: TCmdLinePass, switch: string, info: TLineInfo) =
|
||||||
if switch == " ": localError(conf, info, errInvalidCmdLineOption % "-")
|
if switch == " ": localError(conf, info, errInvalidCmdLineOption % "-")
|
||||||
|
|
@ -508,7 +508,7 @@ proc registerArcOrc(pass: TCmdLinePass, conf: ConfigRef, isOrc: bool) =
|
||||||
else:
|
else:
|
||||||
conf.selectedGC = gcArc
|
conf.selectedGC = gcArc
|
||||||
defineSymbol(conf.symbols, "gcarc")
|
defineSymbol(conf.symbols, "gcarc")
|
||||||
|
|
||||||
defineSymbol(conf.symbols, "gcdestructors")
|
defineSymbol(conf.symbols, "gcdestructors")
|
||||||
incl conf.globalOptions, optSeqDestructors
|
incl conf.globalOptions, optSeqDestructors
|
||||||
incl conf.globalOptions, optTinyRtti
|
incl conf.globalOptions, optTinyRtti
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue