mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-03-01 14:22:31 +01:00
Add --help support back.
This commit is contained in:
parent
2b518338d3
commit
3e202bcf3b
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user