diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-06-24 20:07:02 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-06-24 20:07:02 +0200 |
commit | 34e332f662557773364761fc748ae2b55c04f583 (patch) | |
tree | 20a4b73c4eaa51e40b518a4097b8c8a94b4c911b /compiler/commands.nim | |
parent | 5ee4b1bf2dc335e8830e2bae50268d39ba8e686b (diff) | |
parent | 67fac7f1e7f40d49a985970e67a90dcfaf6ea433 (diff) | |
download | Nim-34e332f662557773364761fc748ae2b55c04f583.tar.gz |
Merge pull request #2983 from nanoant/patch/colors-option
Change --useColors to --colors:on|off and add help
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 4 |
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) |