Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct handling for case sub MAIN('add' , ) {}
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
patrickas authored and moritz committed Jun 11, 2010
1 parent c43bca7 commit 51dfa74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/MAIN.pm
Expand Up @@ -12,7 +12,7 @@ our sub USAGE ($sub=&MAIN) { #The user can still overwrite this in his program t
~ ($param.type ~~ Bool ?? '' !! "=value-of-{$param.name.substr(1)}")
;
} else {
$argument = $param.name.substr(1);
$argument = ($param.name ?? $param.name.substr(1) !! $param.constraints);
if ($param.slurpy) {
$argument ~= " [more [...]]";
}
Expand Down

0 comments on commit 51dfa74

Please sign in to comment.