Preserve --lines (#49194)

This does not propagate in parsing. Open to other ideas.
This commit is contained in:
psakievich 2025-02-26 10:48:01 -07:00 committed by GitHub
parent 929cfc8e5a
commit ae5e121502
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -998,6 +998,7 @@ def finish_parse_and_run(parser, cmd_name, main_args, env_format_error):
args, unknown = parser.parse_known_args(main_args.command)
# we need to inherit verbose since the install command checks for it
args.verbose = main_args.verbose
args.lines = main_args.lines
# 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.