summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py
index ecaf6d02f0..6359d6dacf 100644
--- a/lib/spack/spack/main.py
+++ b/lib/spack/spack/main.py
@@ -416,6 +416,7 @@ def make_argument_parser(**kwargs):
help="print additional output during builds")
parser.add_argument(
'--stacktrace', action='store_true',
+ default='SPACK_STACKTRACE' in os.environ,
help="add stacktraces to all printed statements")
parser.add_argument(
'-V', '--version', action='store_true',