Skip to content

Commit

Permalink
MAIN sub: added example of argument short alias
Browse files Browse the repository at this point in the history
  • Loading branch information
unclechu committed Sep 24, 2017
1 parent 4f4b366 commit 788ca95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/functions.pod6
Expand Up @@ -891,7 +891,7 @@ call L<exit|https://docs.perl6.org/routine/exit>.
sub MAIN( Int :$length = 24,
:file($data) where { .IO.f // die "file not found in $*CWD" } = 'file.dat',
Bool :$verbose )
Bool :v(:$verbose) #`( either --verbose or -v ) )
{
say $length if $length.defined;
say $data if $data.defined;
Expand Down

0 comments on commit 788ca95

Please sign in to comment.