summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZoom <ZoomRmc@users.noreply.github.com>2022-05-04 14:24:52 +0000
committerGitHub <noreply@github.com>2022-05-04 15:24:52 +0100
commit278ecad973c6581aeea0a6ff9372109b0dd6df5e (patch)
tree25b47afcc3b195510e83223b49c40956982cf669 /compiler
parent2ecae20c437179ff84e255f952dae7000f7ff316 (diff)
downloadNim-278ecad973c6581aeea0a6ff9372109b0dd6df5e.tar.gz
Add 'usages' option to the --stylechecks error msg (#19759)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index bab98b376..2e08ad615 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -116,7 +116,7 @@ const
   errInvalidCmdLineOption = "invalid command line option: '$1'"
   errOnOrOffExpectedButXFound = "'on' or 'off' 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) =
   if switch == " ": localError(conf, info, errInvalidCmdLineOption % "-")
@@ -508,7 +508,7 @@ proc registerArcOrc(pass: TCmdLinePass, conf: ConfigRef, isOrc: bool) =
   else:
     conf.selectedGC = gcArc
     defineSymbol(conf.symbols, "gcarc")
-  
+
   defineSymbol(conf.symbols, "gcdestructors")
   incl conf.globalOptions, optSeqDestructors
   incl conf.globalOptions, optTinyRtti