Use an environment variable to set the default stacktrace behavior (#23357)

This commit is contained in:
Harmen Stoppels 2021-05-03 16:22:30 +02:00 committed by GitHub
parent 94f66d8ef8
commit 9c1c7ab6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',