From cb0450398a5695e1e1193e6c49ff9c7548980438 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 3 Sep 2019 20:15:27 +0200 Subject: introduce --oldgensym:on rather than --useVersion --- compiler/commands.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler') diff --git a/compiler/commands.nim b/compiler/commands.nim index 1123996c1..386b29f8f 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -783,15 +783,15 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "expandmacro": expectArg(conf, switch, arg, pass, info) conf.macrosToExpand[arg] = "T" + of "oldgensym": + processOnOffSwitchG(conf, {optNimV019}, arg, pass, info) 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}") + localError(conf, info, "unknown Nim version; currently supported values are: {1.0}") of "": conf.projectName = "-" else: -- cgit 1.4.1-2-gfad0