Correct name of the option

This commit is contained in:
Clement 2015-05-03 11:19:03 +02:00
commit d6ed077db8

View file

@ -74,7 +74,7 @@ Options:
-n, --reject Reject all interactive prompts.
--ver Query remote server for package version
information when searching or listing packages
--dir Set the Nimble directory.
--nimbledir dirname Set the Nimble directory.
For more information read the Github readme:
https://github.com/nim-lang/nimble#readme
@ -218,7 +218,7 @@ proc parseCmdLine(): Options =
of "accept", "y": result.forcePrompts = forcePromptYes
of "reject", "n": result.forcePrompts = forcePromptNo
of "ver": result.queryVersions = true
of "dir": result.config.nimbleDir = val # overrides option from file
of "nimbleDir": result.config.nimbleDir = val # overrides option from file
of "installed", "i": result.queryInstalled = true
else: discard
of cmdEnd: assert(false) # cannot happen