]> git.proxmox.com Git - pve-storage.git/commitdiff
test: rbd: indendation cleanup, allow -d short-opt for debug
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Apr 2021 13:26:59 +0000 (15:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Apr 2021 13:27:26 +0000 (15:27 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
test/rbd_namespace.pl

index 0a1d02670b578c5653c7d094097e3887f84c9254..aaed30579c6026961651fbc0509ed80c27d1a00e 100755 (executable)
@@ -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) {