Use consistent help messages
This commit is contained in:
parent
943a754dae
commit
37770d0fa8
12
pvc.py
12
pvc.py
|
@ -744,12 +744,12 @@ def vm():
|
||||||
@click.command(name='define', short_help='Define a new virtual machine from a Libvirt XML file.')
|
@click.command(name='define', short_help='Define a new virtual machine from a Libvirt XML file.')
|
||||||
@click.option(
|
@click.option(
|
||||||
'-t', '--hypervisor', 'target_hypervisor',
|
'-t', '--hypervisor', 'target_hypervisor',
|
||||||
help='The home hypervisor for this domain; autoselects if unspecified.'
|
help='The home hypervisor for this domain; autodetect if unspecified.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-s', '--selector', 'selector', default='mem', show_default=True,
|
'-s', '--selector', 'selector', default='mem', show_default=True,
|
||||||
type=click.Choice(['mem','load','vcpus','vms']),
|
type=click.Choice(['mem','load','vcpus','vms']),
|
||||||
help='Method to determine the optimal target hypervisor automatically.'
|
help='Method to determine optimal target hypervisor during autodetect.'
|
||||||
)
|
)
|
||||||
@click.argument(
|
@click.argument(
|
||||||
'config', type=click.File()
|
'config', type=click.File()
|
||||||
|
@ -1025,12 +1025,12 @@ def stop_vm(domain):
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-t', '--hypervisor', 'target_hypervisor', default=None,
|
'-t', '--hypervisor', 'target_hypervisor', default=None,
|
||||||
help='The target hypervisor to migrate to. Autodetect based on most free RAM if unspecified.'
|
help='The target hypervisor to migrate to; autodetect if unspecified.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-s', '--selector', 'selector', default='mem', show_default=True,
|
'-s', '--selector', 'selector', default='mem', show_default=True,
|
||||||
type=click.Choice(['mem','load','vcpus','vms']),
|
type=click.Choice(['mem','load','vcpus','vms']),
|
||||||
help='Method to determine the optimal target hypervisor automatically.'
|
help='Method to determine optimal target hypervisor during autodetect.'
|
||||||
)
|
)
|
||||||
def move_vm(domain, target_hypervisor, selector):
|
def move_vm(domain, target_hypervisor, selector):
|
||||||
"""
|
"""
|
||||||
|
@ -1093,12 +1093,12 @@ def move_vm(domain, target_hypervisor, selector):
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-t', '--hypervisor', 'target_hypervisor', default=None,
|
'-t', '--hypervisor', 'target_hypervisor', default=None,
|
||||||
help='The target hypervisor to migrate to. Autodetect based on most free RAM if unspecified.'
|
help='The target hypervisor to migrate to; autodetect if unspecified.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-s', '--selector', 'selector', default='mem', show_default=True,
|
'-s', '--selector', 'selector', default='mem', show_default=True,
|
||||||
type=click.Choice(['mem','load','vcpus','vms']),
|
type=click.Choice(['mem','load','vcpus','vms']),
|
||||||
help='Method to determine the optimal target hypervisor automatically.'
|
help='Method to determine optimal target hypervisor during autodetect.'
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
'-f', '--force', 'force_migrate', is_flag=True, default=False,
|
'-f', '--force', 'force_migrate', is_flag=True, default=False,
|
||||||
|
|
Loading…
Reference in New Issue