summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2024-02-15 15:15:40 -0700
committerGitHub <noreply@github.com>2024-02-15 15:15:40 -0700
commit6c3511ee1d04e3a0003e125471e80d85e110d0b1 (patch)
treef957982e9d18f0bcb158d8dcb639888342509052
parentd19fa7490937aca9c99e8b3d1e88f3bed81ab2c4 (diff)
downloadspack-6c3511ee1d04e3a0003e125471e80d85e110d0b1.tar.gz
spack-6c3511ee1d04e3a0003e125471e80d85e110d0b1.tar.bz2
spack-6c3511ee1d04e3a0003e125471e80d85e110d0b1.tar.xz
spack-6c3511ee1d04e3a0003e125471e80d85e110d0b1.zip
Fix spack --profile|--pdb <cmd> (#42662)
-rw-r--r--lib/spack/spack/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py
index 5d78e354d1..9676d436dd 100644
--- a/lib/spack/spack/main.py
+++ b/lib/spack/spack/main.py
@@ -1038,9 +1038,9 @@ def finish_parse_and_run(parser, cmd_name, main_args, env_format_error):
set_working_dir()
# now we can actually execute the command.
- if args.spack_profile or args.sorted_profile:
+ if main_args.spack_profile or main_args.sorted_profile:
_profile_wrapper(command, parser, args, unknown)
- elif args.pdb:
+ elif main_args.pdb:
import pdb
pdb.runctx("_invoke_command(command, parser, args, unknown)", globals(), locals())