Skip to content

Commit 701136c

Browse files
authored
nimble -v should not compile Nim Fixes #1232 Fixes #1227 (#1234)
* `nimble -v` should not compile Nim Fixes #1232 * help should not compile Nim Fixes #1227
1 parent 5713a3c commit 701136c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nimble.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,8 @@ when isMainModule:
24842484
if opt.action.typ in {actionTasks, actionRun, actionBuild, actionCompile, actionDevelop}:
24852485
# Implicitly disable package validation for these commands.
24862486
opt.disableValidation = true
2487-
opt.setNimBin
2487+
if not opt.showVersion and not opt.showHelp:
2488+
opt.setNimBin
24882489
opt.doAction()
24892490
except NimbleQuit as quit:
24902491
exitCode = quit.exitCode

0 commit comments

Comments
 (0)