@@ -418,25 +418,26 @@ def get_parser(device_class=None):
418
418
attach_parser .add_argument (* read_only [0 ], ** read_only [1 ])
419
419
assign_parser .add_argument (* read_only [0 ], ** read_only [1 ])
420
420
421
- mode_parser = assign_parser .add_mutually_exclusive_group ()
422
- mode_parser .add_argument ('--persistent' , '-p' ,
421
+ attach_parser .add_argument ('--persistent' , '-p' ,
423
422
dest = 'required' ,
424
423
action = 'store_true' ,
425
424
default = False ,
426
425
help = "Alias to `assign --required` for backward "
427
426
"compatibility" )
427
+
428
+ mode_parser = assign_parser .add_mutually_exclusive_group ()
428
429
mode_parser .add_argument ('--ask' , '--ask-to-attach' ,
429
430
action = 'store_true' ,
430
431
default = False ,
431
432
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)" )
432
440
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)" )
440
441
assign_parser .add_argument ('--port' ,
441
442
action = 'store_true' ,
442
443
default = False ,
0 commit comments