Add -t
short option for spack --backtrace
(#47227)
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
61d2d21acc
commit
c8bebff7f5
@ -489,6 +489,7 @@ def make_argument_parser(**kwargs):
|
||||
help="add stacktraces to all printed statements",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-t",
|
||||
"--backtrace",
|
||||
action="store_true",
|
||||
default="SPACK_BACKTRACE" in os.environ,
|
||||
|
@ -399,7 +399,7 @@ SPACK_ALIASES="concretise:concretize;containerise:containerize;rm:remove"
|
||||
_spack() {
|
||||
if $list_options
|
||||
then
|
||||
SPACK_COMPREPLY="-h --help -H --all-help --color -c --config -C --config-scope -d --debug --timestamp --pdb -e --env -D --env-dir -E --no-env --use-env-repo -k --insecure -l --enable-locks -L --disable-locks -m --mock -b --bootstrap -p --profile --sorted-profile --lines -v --verbose --stacktrace --backtrace -V --version --print-shell-vars"
|
||||
SPACK_COMPREPLY="-h --help -H --all-help --color -c --config -C --config-scope -d --debug --timestamp --pdb -e --env -D --env-dir -E --no-env --use-env-repo -k --insecure -l --enable-locks -L --disable-locks -m --mock -b --bootstrap -p --profile --sorted-profile --lines -v --verbose --stacktrace -t --backtrace -V --version --print-shell-vars"
|
||||
else
|
||||
SPACK_COMPREPLY="add arch audit blame bootstrap build-env buildcache cd change checksum ci clean clone commands compiler compilers concretize concretise config containerize containerise create debug deconcretize dependencies dependents deprecate dev-build develop diff docs edit env extensions external fetch find gc gpg graph help info install license list load location log-parse logs maintainers make-installer mark mirror module patch pkg providers pydoc python reindex remove rm repo resource restage solve spec stage style tags test test-env tutorial undevelop uninstall unit-test unload url verify versions view"
|
||||
fi
|
||||
|
@ -347,7 +347,7 @@ complete -c spack --erase
|
||||
# Everything below here is auto-generated.
|
||||
|
||||
# spack
|
||||
set -g __fish_spack_optspecs_spack h/help H/all-help color= c/config= C/config-scope= d/debug timestamp pdb e/env= D/env-dir= E/no-env use-env-repo k/insecure l/enable-locks L/disable-locks m/mock b/bootstrap p/profile sorted-profile= lines= v/verbose stacktrace backtrace V/version print-shell-vars=
|
||||
set -g __fish_spack_optspecs_spack h/help H/all-help color= c/config= C/config-scope= d/debug timestamp pdb e/env= D/env-dir= E/no-env use-env-repo k/insecure l/enable-locks L/disable-locks m/mock b/bootstrap p/profile sorted-profile= lines= v/verbose stacktrace t/backtrace V/version print-shell-vars=
|
||||
complete -c spack -n '__fish_spack_using_command_pos 0 ' -f -a add -d 'add a spec to an environment'
|
||||
complete -c spack -n '__fish_spack_using_command_pos 0 ' -f -a arch -d 'print architecture information about this machine'
|
||||
complete -c spack -n '__fish_spack_using_command_pos 0 ' -f -a audit -d 'audit configuration files, packages, etc.'
|
||||
@ -473,8 +473,8 @@ complete -c spack -n '__fish_spack_using_command ' -s v -l verbose -f -a verbose
|
||||
complete -c spack -n '__fish_spack_using_command ' -s v -l verbose -d 'print additional output during builds'
|
||||
complete -c spack -n '__fish_spack_using_command ' -l stacktrace -f -a stacktrace
|
||||
complete -c spack -n '__fish_spack_using_command ' -l stacktrace -d 'add stacktraces to all printed statements'
|
||||
complete -c spack -n '__fish_spack_using_command ' -l backtrace -f -a backtrace
|
||||
complete -c spack -n '__fish_spack_using_command ' -l backtrace -d 'always show backtraces for exceptions'
|
||||
complete -c spack -n '__fish_spack_using_command ' -s t -l backtrace -f -a backtrace
|
||||
complete -c spack -n '__fish_spack_using_command ' -s t -l backtrace -d 'always show backtraces for exceptions'
|
||||
complete -c spack -n '__fish_spack_using_command ' -s V -l version -f -a version
|
||||
complete -c spack -n '__fish_spack_using_command ' -s V -l version -d 'show version number and exit'
|
||||
complete -c spack -n '__fish_spack_using_command ' -l print-shell-vars -r -f -a print_shell_vars
|
||||
|
Loading…
Reference in New Issue
Block a user