Add --help support back.

This commit is contained in:
Manuel Amador (Rudd-O) 2022-01-03 22:25:27 +00:00
parent 2b518338d3
commit 3e202bcf3b

View File

@ -336,6 +336,8 @@ if not "--help" in arguments and not "-h" in arguments and not "-?" in arguments
len(global_opts.arguments) == 1 and global_opts.arguments[0] not in subcommands
):
global_opts.arguments = ["show"] + global_opts.arguments
else:
parser_for_subcommands.parse_known_args(arguments)
arguments = global_opts.arguments
opts = parser_for_subcommands.parse_args(arguments)