Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix perl6 -pe 'stuff'
  • Loading branch information
retupmoca committed Apr 23, 2014
1 parent 8ac1a92 commit 8ec9562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/HLL/CommandLine.nqp
Expand Up @@ -257,9 +257,10 @@ class HLL::CommandLine::Parser {
if %!options{$o} {
if self.wants-value($o) {
if $i + 1 == $len {
nqp::die("Option '$o' in grouped options '-$opt' needs a value, but does not have one");
$result.add-option($o, get-value("-$o"));
} else {
$result.add-option($o, nqp::substr($opt, $i + 1));
}
$result.add-option($o, nqp::substr($opt, $i + 1));
last;
}
else {
Expand Down

0 comments on commit 8ec9562

Please sign in to comment.