Skip to content

Commit

Permalink
nimble -v should not compile Nim Fixes #1232 Fixes #1227 (#1234)
Browse files Browse the repository at this point in the history
* `nimble -v` should not compile Nim Fixes #1232

* help should not compile Nim Fixes #1227
  • Loading branch information
jmgomez authored Jul 4, 2024
1 parent 5713a3c commit 701136c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nimble.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,8 @@ when isMainModule:
if opt.action.typ in {actionTasks, actionRun, actionBuild, actionCompile, actionDevelop}:
# Implicitly disable package validation for these commands.
opt.disableValidation = true
opt.setNimBin
if not opt.showVersion and not opt.showHelp:
opt.setNimBin
opt.doAction()
except NimbleQuit as quit:
exitCode = quit.exitCode
Expand Down

0 comments on commit 701136c

Please sign in to comment.