RosettaCodeData/Task/Command-line-arguments/Raku/command-line-arguments.raku

9 lines
165 B
Raku
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# with arguments supplied
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3 5
8
# missing argument:
$ raku -e 'sub MAIN($x, $y) { say $x + $y }' 3
Usage:
-e '...' x y