Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
named arguments are always shown first
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
patrickas authored and moritz committed Jun 10, 2010
1 parent 563cad0 commit 3b29cd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/MAIN.pm
Expand Up @@ -18,7 +18,11 @@ our sub USAGE ($sub=&MAIN) { #The user can still overwrite this in his program t
}
}
$argument = "[$argument]" if $param.optional;
@arguments.push($argument);
if ($param.named) {
@arguments.unshift($argument);
} else {
@arguments.push($argument);
}
}
return ($*PROGRAM_NAME eq '-e' ?? "-e '...'" !! $*PROGRAM_NAME )~ ' ' ~ @arguments.join(' ');
};
Expand Down

0 comments on commit 3b29cd2

Please sign in to comment.