diff options
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 3874ea38f..662df9c84 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -788,6 +788,15 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "expandmacro": expectArg(conf, switch, arg, pass, info) conf.macrosToExpand[arg] = "T" + of "useversion": + expectArg(conf, switch, arg, pass, info) + case arg + of "0.19": + conf.globalOptions.incl optNimV019 + of "1.0": + discard "the default" + else: + localError(conf, info, "unknown Nim version; currently supported values are: {0.19, 1.0}") of "": conf.projectName = "-" else: |