diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2023-08-19 02:05:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 07:05:06 +0200 |
commit | c44c8ddb44b1379720f1f2c42bfa2dafe7fbc11c (patch) | |
tree | de8849c3cfe45d65060e2d20e10bf8c955ea8eb3 | |
parent | 20cbdc2741e9e34a99288ded9664378afc80acb6 (diff) | |
download | Nim-c44c8ddb44b1379720f1f2c42bfa2dafe7fbc11c.tar.gz |
Remove Deprecated Babel (#22507)
-rw-r--r-- | compiler/commands.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 749be80f0..6d162fab2 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -622,8 +622,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; for path in nimbleSubs(conf, arg): addPath(conf, if pass == passPP: processCfgPath(conf, path, info) else: processPath(conf, path, info), info) - of "nimblepath", "babelpath": - if switch.normalize == "babelpath": deprecatedAlias(switch, "nimblepath") + of "nimblepath": if pass in {passCmd2, passPP} and optNoNimblePath notin conf.globalOptions: expectArg(conf, switch, arg, pass, info) var path = processPath(conf, arg, info, notRelativeToProj=true) @@ -633,8 +632,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; nimblePath(conf, path, info) path = nimbleDir / RelativeDir"pkgs" nimblePath(conf, path, info) - of "nonimblepath", "nobabelpath": - if switch.normalize == "nobabelpath": deprecatedAlias(switch, "nonimblepath") + of "nonimblepath": expectNoArg(conf, switch, arg, pass, info) disableNimblePath(conf) of "clearnimblepath": |