Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't treat an option prefix followed immediately by a digit or perio…
…d as an option (it's probably a negative or radix-notation number)
  • Loading branch information
Geoffrey Broadwell committed Oct 28, 2011
1 parent 158bd07 commit d264275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Main.pm
Expand Up @@ -84,7 +84,7 @@ my sub MAIN_HELPER($retval = 0) {
my (@positional-arguments, %named-arguments);
while (@args) {
my $passed-value = @args.shift;
if $passed-value ~~ /^ ( '--' | '-' | ':' ) ('/'?) (.+) $/ {
if $passed-value ~~ /^ ( '--' | '-' | ':' ) ('/'?) (<-[0..9\.]> .*) $/ {
my ($switch, $negate, $arg) = (~$0, ?((~$1).chars), ~$2);

if $arg.index('=').defined {
Expand Down

0 comments on commit d264275

Please sign in to comment.