From 0d8ed0a313597d2ce8a606a0f7cee5af57b95dda Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Apr 2021 15:43:42 +0200 Subject: [PATCH] test: rbd: improve usage output 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 37e8eba..6b115ce 100755 --- a/test/rbd_namespace.pl +++ b/test/rbd_namespace.pl @@ -33,15 +33,17 @@ my $vmid = 999999; my $cleanup = undef; my $DEBUG = 0; -my $helpstring = "To override default values, set them as named parameters: +my $helpstring = "usage: $0 [OPTIONS] ---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 +Known options are: + + --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 VM afterwards + -d, --debug Enable debug output + -h, --help Print this help message "; GetOptions (