Skip to content

Commit 788ca95

Browse files
authored
MAIN sub: added example of argument short alias
1 parent 4f4b366 commit 788ca95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/functions.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ call L<exit|https://docs.perl6.org/routine/exit>.
891891
892892
sub MAIN( Int :$length = 24,
893893
:file($data) where { .IO.f // die "file not found in $*CWD" } = 'file.dat',
894-
Bool :$verbose )
894+
Bool :v(:$verbose) #`( either --verbose or -v ) )
895895
{
896896
say $length if $length.defined;
897897
say $data if $data.defined;

0 commit comments

Comments
 (0)