Make debug and verbose output work properly.

This commit is contained in:
Todd Gamblin
2014-06-19 08:47:06 -07:00
parent 4608b674e5
commit b6740cf1d1
3 changed files with 34 additions and 8 deletions

View File

@@ -77,8 +77,10 @@ for cmd in spack.cmd.commands:
args = parser.parse_args()
# Set up environment based on args.
spack.verbose = args.verbose
tty.set_verbose(args.verbose)
tty.set_debug(args.debug)
spack.debug = args.debug
spack.spack_working_dir = working_dir
if args.mock:
from spack.packages import PackageDB