tools: minor fixes for documentation building
This commit is contained in:
parent
d3439694c8
commit
39a888df4d
@ -31,8 +31,12 @@ import qubesmgmt
|
|||||||
import qubesmgmt.tools.qvm_prefs
|
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
|
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)
|
args = parser.parse_args(args, app=app)
|
||||||
target = args.app
|
target = args.app
|
||||||
return qubesmgmt.tools.qvm_prefs.process_actions(parser, args, target)
|
return qubesmgmt.tools.qvm_prefs.process_actions(parser, args, target)
|
||||||
|
@ -319,7 +319,7 @@ else:
|
|||||||
'.qvm-start-gui.pid')
|
'.qvm-start-gui.pid')
|
||||||
|
|
||||||
parser = qubesmgmt.tools.QubesArgumentParser(
|
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',
|
parser.add_argument('--watch', action='store_true',
|
||||||
help='Keep watching for further domains startups, must be used with --all')
|
help='Keep watching for further domains startups, must be used with --all')
|
||||||
parser.add_argument('--pidfile', action='store', default=pidfile_path,
|
parser.add_argument('--pidfile', action='store', default=pidfile_path,
|
||||||
|
@ -186,7 +186,7 @@ def init_revert_parser(sub_parsers):
|
|||||||
def init_extend_parser(sub_parsers):
|
def init_extend_parser(sub_parsers):
|
||||||
''' Add 'extend' action related options '''
|
''' Add 'extend' action related options '''
|
||||||
extend_parser = sub_parsers.add_parser(
|
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',
|
extend_parser.add_argument(metavar='VM:VOLUME', dest='volume',
|
||||||
action=qubesmgmt.tools.VMVolumeAction)
|
action=qubesmgmt.tools.VMVolumeAction)
|
||||||
extend_parser.add_argument('size', help='New size in bytes')
|
extend_parser.add_argument('size', help='New size in bytes')
|
||||||
|
Loading…
Reference in New Issue
Block a user