Fix argument parsing for -d.

This commit is contained in:
Manuel Amador (Rudd-O) 2021-12-18 23:23:41 +00:00
parent ab6c409ae6
commit ab93485e4e
2 changed files with 5 additions and 3 deletions

View File

@ -331,11 +331,13 @@ arguments = sys.argv[1:]
if not "--help" in arguments and not "-h" in arguments and not "-?" in arguments:
global_opts, args = parser_for_discrimination.parse_known_args(arguments)
if len(global_opts.arguments) == 0:
arguments = ["ls"] + arguments
global_opts.arguments = ["ls"] + global_opts.arguments
elif (
len(global_opts.arguments) == 1 and global_opts.arguments[0] not in subcommands
):
arguments = ["show"] + arguments
global_opts.arguments = ["show"] + global_opts.arguments
arguments = global_opts.arguments
assert 0, arguments
opts = parser_for_subcommands.parse_args(arguments)

View File

@ -3,7 +3,7 @@
%define mybuildnumber %{?build_number}%{?!build_number:1}
Name: qubes-pass
Version: 0.0.24
Version: 0.0.25
Release: %{mybuildnumber}%{?dist}
Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs
BuildArch: noarch