Skip to content

Commit

Permalink
q-dev: fix qvm-device
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent 38cc1da commit 4ea814f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions qubesadmin/tools/qvm_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,25 +418,26 @@ def get_parser(device_class=None):
attach_parser.add_argument(*read_only[0], **read_only[1])
assign_parser.add_argument(*read_only[0], **read_only[1])

mode_parser = assign_parser.add_mutually_exclusive_group()
mode_parser.add_argument('--persistent', '-p',
attach_parser.add_argument('--persistent', '-p',
dest='required',
action='store_true',
default=False,
help="Alias to `assign --required` for backward "
"compatibility")

mode_parser = assign_parser.add_mutually_exclusive_group()
mode_parser.add_argument('--ask', '--ask-to-attach',
action='store_true',
default=False,
help="Always ask before auto-attachment")
mode_parser.add_argument('--required', '-r',
dest='required',
action='store_true',
default=False,
help="Mark device as required so it will "
"be required to the qube's startup and then"
" automatically attached)")

assign_parser.add_argument('--required', '-r',
dest='required',
action='store_true',
default=False,
help="Mark device as required so it will "
"be required to the qube's startup and then"
" automatically attached)")
assign_parser.add_argument('--port',
action='store_true',
default=False,
Expand Down

0 comments on commit 4ea814f

Please sign in to comment.