We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feba20f commit 86631e7Copy full SHA for 86631e7
diff-so-fancy
@@ -626,8 +626,9 @@ sub argv {
626
my $ret = {};
627
628
for (my $i = 0; $i < scalar(@ARGV); $i++) {
629
+
630
# If the item starts with "-" it's a key
- if ((my ($key) = $ARGV[$i] =~ /^--?([a-zA-Z_]\w*)/) && ($ARGV[$i] !~ /^-\w\w/)) {
631
+ if ((my ($key) = $ARGV[$i] =~ /^--?([a-zA-Z_-]*\w)$/) && ($ARGV[$i] !~ /^-\w\w/)) {
632
# If the next item does not start with "--" it's the value for this item
633
if (defined($ARGV[$i + 1]) && ($ARGV[$i + 1] !~ /^--?\D/)) {
634
$ret->{$key} = $ARGV[$i + 1];
0 commit comments