Ensure global command line arguments end up in args like before (#40929)
This commit is contained in:
parent
53a31bbbbf
commit
3c8cd8d30c
1 changed files with 1 additions and 1 deletions
|
@ -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."""
|
"""Finish parsing after we know the command to run."""
|
||||||
# add the found command to the parser and re-run then re-parse
|
# add the found command to the parser and re-run then re-parse
|
||||||
command = parser.add_command(cmd_name)
|
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
|
# 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.
|
# whether we can continue with a bad environment and raise if not.
|
||||||
|
|
Loading…
Reference in a new issue