]> git.proxmox.com Git - pve-storage.git/commitdiff
test: rbd: improve usage output
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Apr 2021 13:43:42 +0000 (15:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Apr 2021 13:43:42 +0000 (15:43 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
test/rbd_namespace.pl

index 37e8eba8ac42c5f7672ca7ff7b0d079116204d80..6b115cecf196c6272cd6c43c634a9c50b0a51330 100755 (executable)
@@ -33,15 +33,17 @@ my $vmid = 999999;
 my $cleanup = undef;
 my $DEBUG = 0;
 
-my $helpstring = "To override default values, set them as named parameters:
-
---pool         pool name, default: ${pool}
---use-existing  use existing pool, default: 0, needs --pool set
---namespace    rbd namespace, default: ${namespace}
---vmid         VMID of the test VM, default: ${vmid}
---cleanup      Remove the storage definitions, namespaces and VMs
--d, --debug    Enable debug output
--h, --help     Print this help message
+my $helpstring = "usage: $0 [OPTIONS]
+
+Known options are:
+
+ --pool <name>         pool name, default: ${pool}
+ --use-existing                use existing pool, default: 0, needs --pool set
+ --namespace <name>    rbd namespace, default: ${namespace}
+ --vmid <id>           VMID of the test VM, default: ${vmid}
+ --cleanup             Remove the storage definitions, namespaces and VM afterwards
+ -d, --debug           Enable debug output
+ -h, --help            Print this help message
 ";
 
 GetOptions (