summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 922cda3c6..e3d3bc432 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -537,9 +537,7 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
   of "genscript":
     expectNoArg(switch, arg, pass, info)
     incl(gGlobalOptions, optGenScript)
-  of "usecolors":
-    expectNoArg(switch, arg, pass, info)
-    incl(gGlobalOptions, optUseColors)
+  of "colors": processOnOffSwitchG({optUseColors}, arg, pass, info)
   of "lib":
     expectArg(switch, arg, pass, info)
     libpath = processPath(arg, notRelativeToProj=true)