From 943a754dae2e8bb500141095119311d8f8f11d66 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 18 Jul 2018 22:22:12 -0400 Subject: [PATCH] Add default show to selector option --- pvc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pvc.py b/pvc.py index cb747580..f2020214 100755 --- a/pvc.py +++ b/pvc.py @@ -747,7 +747,7 @@ def vm(): help='The home hypervisor for this domain; autoselects if unspecified.' ) @click.option( - '-s', '--selector', 'selector', default='mem', + '-s', '--selector', 'selector', default='mem', show_default=True, type=click.Choice(['mem','load','vcpus','vms']), help='Method to determine the optimal target hypervisor automatically.' ) @@ -1028,7 +1028,7 @@ def stop_vm(domain): help='The target hypervisor to migrate to. Autodetect based on most free RAM if unspecified.' ) @click.option( - '-s', '--selector', 'selector', default='mem', + '-s', '--selector', 'selector', default='mem', show_default=True, type=click.Choice(['mem','load','vcpus','vms']), help='Method to determine the optimal target hypervisor automatically.' ) @@ -1096,7 +1096,7 @@ def move_vm(domain, target_hypervisor, selector): help='The target hypervisor to migrate to. Autodetect based on most free RAM if unspecified.' ) @click.option( - '-s', '--selector', 'selector', default='mem', + '-s', '--selector', 'selector', default='mem', show_default=True, type=click.Choice(['mem','load','vcpus','vms']), help='Method to determine the optimal target hypervisor automatically.' )