tools/qvm-ls: add --network and --disk compatibility options
Shortcuts for new --format=...
This commit is contained in:
parent
080b563ae2
commit
b16f3ab79b
@ -53,6 +53,14 @@ Options
|
|||||||
Give plain list of VM names, without header or separator. Useful in scripts.
|
Give plain list of VM names, without header or separator. Useful in scripts.
|
||||||
Same as --raw-data --fields=name
|
Same as --raw-data --fields=name
|
||||||
|
|
||||||
|
.. option:: --disk, -d
|
||||||
|
|
||||||
|
Same as --format=disk, for compatibility with Qubes 3.x
|
||||||
|
|
||||||
|
.. option:: --network, -n
|
||||||
|
|
||||||
|
Same as --format=network, for compatibility with Qubes 3.x
|
||||||
|
|
||||||
.. option:: --verbose, -v
|
.. option:: --verbose, -v
|
||||||
|
|
||||||
Increase verbosity.
|
Increase verbosity.
|
||||||
|
@ -543,6 +543,14 @@ def get_parser():
|
|||||||
parser.add_argument('--raw-list', action='store_true',
|
parser.add_argument('--raw-list', action='store_true',
|
||||||
help='Same as --raw-data --fields=name')
|
help='Same as --raw-data --fields=name')
|
||||||
|
|
||||||
|
parser.add_argument('--disk', '-d',
|
||||||
|
action='store_const', dest='format', const='disk',
|
||||||
|
help='Same as --format=disk')
|
||||||
|
|
||||||
|
parser.add_argument('--network', '-n',
|
||||||
|
action='store_const', dest='format', const='network',
|
||||||
|
help='Same as --format=network')
|
||||||
|
|
||||||
parser.set_defaults(spinner=True)
|
parser.set_defaults(spinner=True)
|
||||||
|
|
||||||
# parser.add_argument('--conf', '-c',
|
# parser.add_argument('--conf', '-c',
|
||||||
|
Loading…
Reference in New Issue
Block a user