diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2023-11-07 20:35:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 20:35:56 +0100 |
commit | 3a2ec729f7fb413aed47eb78abf5dc3d87f79222 (patch) | |
tree | 4d0e9389d4cfe1a9626ffdd7d66a5a68dd418abc | |
parent | a093f4a8cee849a63e09065037e3a859306e808f (diff) | |
download | spack-3a2ec729f7fb413aed47eb78abf5dc3d87f79222.tar.gz spack-3a2ec729f7fb413aed47eb78abf5dc3d87f79222.tar.bz2 spack-3a2ec729f7fb413aed47eb78abf5dc3d87f79222.tar.xz spack-3a2ec729f7fb413aed47eb78abf5dc3d87f79222.zip |
Ensure global command line arguments end up in args like before (#40929)
-rw-r--r-- | lib/spack/spack/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py index 87408d363a..5f28ab480c 100644 --- a/lib/spack/spack/main.py +++ b/lib/spack/spack/main.py @@ -1023,7 +1023,7 @@ def finish_parse_and_run(parser, cmd_name, cmd, env_format_error): """Finish parsing after we know the command to run.""" # add the found command to the parser and re-run then re-parse command = parser.add_command(cmd_name) - args, unknown = parser.parse_known_args(cmd) + args, unknown = parser.parse_known_args() # Now that we know what command this is and what its args are, determine # whether we can continue with a bad environment and raise if not. |