diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-05-03 16:22:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 16:22:30 +0200 |
commit | 9c1c7ab6cab1a7aac89220c1fdd694893b7fd729 (patch) | |
tree | 64cf77effee14cd11d9855fc6b25d293aa6e441d | |
parent | 94f66d8ef89ea3224bae7ed8f07f0410dc49fb76 (diff) | |
download | spack-9c1c7ab6cab1a7aac89220c1fdd694893b7fd729.tar.gz spack-9c1c7ab6cab1a7aac89220c1fdd694893b7fd729.tar.bz2 spack-9c1c7ab6cab1a7aac89220c1fdd694893b7fd729.tar.xz spack-9c1c7ab6cab1a7aac89220c1fdd694893b7fd729.zip |
Use an environment variable to set the default stacktrace behavior (#23357)
-rw-r--r-- | lib/spack/spack/main.py | 1 |
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', |