diff --git a/test/rbd_namespace.pl b/test/rbd_namespace.pl index 5798bf1..1609d76 100755 --- a/test/rbd_namespace.pl +++ b/test/rbd_namespace.pl @@ -47,12 +47,15 @@ GetOptions ( "use-existing" => \$use_existing, "namespace=s" => \$namespace, "vmid=i" => \$vmid, - "help" => \$showhelp, + "h|help" => \$showhelp, "cleanup" => \$cleanup, "debug" => \$DEBUG, ) or die ($helpstring); -die $helpstring if $showhelp; +if ($showhelp) { + warn $helpstring; + exit(0); +} my $storage_name = "${pool}-${namespace}";