Implement debug messages and wrap exec output in them.

This commit is contained in:
Dominik Picheta 2016-12-21 20:09:53 +01:00
commit 87d6f85aea
3 changed files with 19 additions and 7 deletions

View file

@ -85,7 +85,8 @@ Options:
information when searching or listing packages
--nimbleDir dirname Set the Nimble directory.
-d --depsOnly Install only dependencies.
--verbose Show all output.
--verbose Show all non-debug output.
--debug Show all output including debug messages.
For more information read the Github readme:
https://github.com/nim-lang/nimble#readme
@ -268,6 +269,7 @@ proc parseFlag*(flag, val: string, result: var Options) =
of "installed", "i": result.queryInstalled = true
of "depsonly", "d": result.depsOnly = true
of "verbose": result.verbosity = LowPriority
of "debug": result.verbosity = DebugPriority
else:
raise newException(NimbleError, "Unknown option: --" & flag)