From 33191d3266159a4fec8421f83abd64978fb9c268 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Apr 2021 15:26:59 +0200 Subject: [PATCH] test: rbd: indendation cleanup, allow -d short-opt for debug Signed-off-by: Thomas Lamprecht --- test/rbd_namespace.pl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test/rbd_namespace.pl b/test/rbd_namespace.pl index 0a1d026..aaed305 100755 --- a/test/rbd_namespace.pl +++ b/test/rbd_namespace.pl @@ -40,16 +40,18 @@ my $helpstring = "To override default values, set them as named parameters: --namespace rbd namespace, default: ${namespace} --vmid VMID of the test VM, default: ${vmid} --cleanup Remove the storage definitions, namespaces and VMs ---debug Enable debug output\n"; +-d, --debug Enable debug output +-h, --help Print this help message +"; GetOptions ( - "pool=s" => \$pool, - "use-existing" => \$use_existing, - "namespace=s" => \$namespace, - "vmid=i" => \$vmid, - "h|help" => \$showhelp, - "cleanup" => \$cleanup, - "debug" => \$DEBUG, + "pool=s" => \$pool, + "use-existing" => \$use_existing, + "namespace=s" => \$namespace, + "vmid=i" => \$vmid, + "h|help" => \$showhelp, + "cleanup" => \$cleanup, + "d|debug" => \$DEBUG, ) or die ($helpstring); if ($showhelp) {