summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMatthew Krafczyk <krafczyk.matthew@gmail.com>2016-11-15 15:17:03 -0500
committerMatthew Krafczyk <krafczyk.matthew@gmail.com>2016-11-16 11:58:36 -0500
commit8e6d890a19e557e86791da5905ed96c271a6f61f (patch)
treec2aa616a3529782d617afedbc359fe8e2305a226 /bin
parenta5fb33b0e4d67408fdb4a685925b62db823d98d2 (diff)
downloadspack-8e6d890a19e557e86791da5905ed96c271a6f61f.tar.gz
spack-8e6d890a19e557e86791da5905ed96c271a6f61f.tar.bz2
spack-8e6d890a19e557e86791da5905ed96c271a6f61f.tar.xz
spack-8e6d890a19e557e86791da5905ed96c271a6f61f.zip
-s now includes the file and line number with info
The option -s now causes file and line number information to be printed along with any invocation of msg, info, etc... This will greatly ease debugging.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index 1f5dec0b3d..7cc1b28a37 100755
--- a/bin/spack
+++ b/bin/spack
@@ -128,6 +128,8 @@ parser.add_argument('-p', '--profile', action='store_true',
help="Profile execution using cProfile.")
parser.add_argument('-v', '--verbose', action='store_true',
help="Print additional output during builds")
+parser.add_argument('-s', '--stacktrace', action='store_true',
+ help="Add stacktrace information to all printed statements")
parser.add_argument('-V', '--version', action='version',
version="%s" % spack.spack_version)
@@ -155,6 +157,7 @@ def main():
# Set up environment based on args.
tty.set_verbose(args.verbose)
tty.set_debug(args.debug)
+ tty.set_stacktrace(args.stacktrace)
spack.debug = args.debug
if spack.debug: