Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pick the first defined arg declarator.
  • Loading branch information
Donald Hunter committed Dec 2, 2015
1 parent d834ab9 commit 79f4eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Main.pm
Expand Up @@ -91,7 +91,7 @@ my sub MAIN_HELPER($retval = 0) {
$argument = "[$argument]" if $param.optional;
@positional.push($argument);
}
%arg-help{$argument} = $param.WHY if $param.WHY;
%arg-help{$argument} //= $param.WHY.contents if $param.WHY; # Use first defined
}
if $sub.WHY {
$docs = '-- ' ~ $sub.WHY.contents
Expand Down

0 comments on commit 79f4eed

Please sign in to comment.