Skip to content

Commit 4ea814f

Browse files
committed
q-dev: fix qvm-device
1 parent 38cc1da commit 4ea814f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

qubesadmin/tools/qvm_device.py

+10-9
Original file line numberDiff line numberDiff line change
@@ -418,25 +418,26 @@ def get_parser(device_class=None):
418418
attach_parser.add_argument(*read_only[0], **read_only[1])
419419
assign_parser.add_argument(*read_only[0], **read_only[1])
420420

421-
mode_parser = assign_parser.add_mutually_exclusive_group()
422-
mode_parser.add_argument('--persistent', '-p',
421+
attach_parser.add_argument('--persistent', '-p',
423422
dest='required',
424423
action='store_true',
425424
default=False,
426425
help="Alias to `assign --required` for backward "
427426
"compatibility")
427+
428+
mode_parser = assign_parser.add_mutually_exclusive_group()
428429
mode_parser.add_argument('--ask', '--ask-to-attach',
429430
action='store_true',
430431
default=False,
431432
help="Always ask before auto-attachment")
433+
mode_parser.add_argument('--required', '-r',
434+
dest='required',
435+
action='store_true',
436+
default=False,
437+
help="Mark device as required so it will "
438+
"be required to the qube's startup and then"
439+
" automatically attached)")
432440

433-
assign_parser.add_argument('--required', '-r',
434-
dest='required',
435-
action='store_true',
436-
default=False,
437-
help="Mark device as required so it will "
438-
"be required to the qube's startup and then"
439-
" automatically attached)")
440441
assign_parser.add_argument('--port',
441442
action='store_true',
442443
default=False,

0 commit comments

Comments
 (0)