Skip to content

Commit

Permalink
Fixes examples #1696
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Mar 31, 2019
1 parent 74f848c commit a0ab6a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/create-cli.pod6
Expand Up @@ -171,7 +171,7 @@ Usage:
As any other subroutine, C<MAIN> can define
L<aliases|/Signature#index-entry-aliases> for its named parameters.
=for code
=for code :method<False>
sub MAIN(
Str $file where *.IO.f = 'file.dat', #= an existing file to frobnicate
Int :size(:$length) = 24, #= length/size needed for frobnication
Expand All @@ -184,14 +184,14 @@ sub MAIN(
In which case, these aliases will also be listed as alternatives with C<--help>:
=for code :lang<text>
=begin code :lang<text>
Usage:
frobnicate.p6 [--size|--length=<Int>] [--verbose] [<file>]
[<file>] an existing file to frobnicate
--size|--length=<Int> length needed for frobnication
--verbose required verbosity
=end code
X<|%*SUB-MAIN-OPTS>
=head2 %*SUB-MAIN-OPTS
Expand Down

0 comments on commit a0ab6a1

Please sign in to comment.