]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
remove + from getopt's prefix_pattern
[pve-common.git] / src / PVE / JSONSchema.pm
index ed1813d3bb2a66b4d2f41cc33a58f05acaa020a7..47aa2780ca9e356f382babfdf1ad10975c7261f0 100644 (file)
@@ -1082,6 +1082,8 @@ sub get_options {
        }
     }
 
+    Getopt::Long::Configure('prefix_pattern=(--|-)');
+
     my $opts = {};
     raise("unable to parse option\n", code => HTTP_BAD_REQUEST)
        if !Getopt::Long::GetOptionsFromArray($args, $opts, @getopt);