From 39a888df4d49fe60de1bdf591a86ddc699501670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 11 May 2017 20:20:15 +0200 Subject: [PATCH] tools: minor fixes for documentation building --- qubesmgmt/tools/qubes_prefs.py | 6 +++++- qubesmgmt/tools/qvm_start_gui.py | 2 +- qubesmgmt/tools/qvm_volume.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/qubesmgmt/tools/qubes_prefs.py b/qubesmgmt/tools/qubes_prefs.py index 4363a5d..fdf2639 100644 --- a/qubesmgmt/tools/qubes_prefs.py +++ b/qubesmgmt/tools/qubes_prefs.py @@ -31,8 +31,12 @@ import qubesmgmt import qubesmgmt.tools.qvm_prefs +def get_parser(): + return qubesmgmt.tools.qvm_prefs.get_parser(None) + + def main(args=None, app=None): # pylint: disable=missing-docstring - parser = qubesmgmt.tools.qvm_prefs.get_parser(None) + parser = get_parser() args = parser.parse_args(args, app=app) target = args.app return qubesmgmt.tools.qvm_prefs.process_actions(parser, args, target) diff --git a/qubesmgmt/tools/qvm_start_gui.py b/qubesmgmt/tools/qvm_start_gui.py index 912e6ad..58ed4d4 100644 --- a/qubesmgmt/tools/qvm_start_gui.py +++ b/qubesmgmt/tools/qvm_start_gui.py @@ -319,7 +319,7 @@ else: '.qvm-start-gui.pid') parser = qubesmgmt.tools.QubesArgumentParser( - description='forceful shutdown of a domain', vmname_nargs='*') + description='start GUI for qube(s)', vmname_nargs='*') parser.add_argument('--watch', action='store_true', help='Keep watching for further domains startups, must be used with --all') parser.add_argument('--pidfile', action='store', default=pidfile_path, diff --git a/qubesmgmt/tools/qvm_volume.py b/qubesmgmt/tools/qvm_volume.py index 2920d3b..4e815ec 100644 --- a/qubesmgmt/tools/qvm_volume.py +++ b/qubesmgmt/tools/qvm_volume.py @@ -186,7 +186,7 @@ def init_revert_parser(sub_parsers): def init_extend_parser(sub_parsers): ''' Add 'extend' action related options ''' extend_parser = sub_parsers.add_parser( - "extend", help="extend volume from domain", aliases=('d', 'dt')) + "extend", help="extend volume from domain") extend_parser.add_argument(metavar='VM:VOLUME', dest='volume', action=qubesmgmt.tools.VMVolumeAction) extend_parser.add_argument('size', help='New size in bytes')