Skip to content

Commit

Permalink
Document %SUB-MAIN-OPTS<allow-no|numeric-suffix-as-value>
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Mar 3, 2023
1 parent e41bf64 commit 952c044
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion doc/Language/create-cli.pod6
Expand Up @@ -353,7 +353,35 @@ $ raku example.raku -abc=asdf # Error
$ raku example.raku -/abc # Error
=end code
This option is only available starting in the 2020.10 release.
This option is only available starting in the 2020.10 release of the
Rakudo compiler.
=head3 X<C<allow-no>|Programs,allow no- to negate>
When C«%*SUB-MAIN-OPTS<allow-no>» is set to a true value, then negation
of arguments on the command line can also be indicated by using the
C<no-> instead of C</>.
=begin code :lang<shell>
$ raku example.raku --/foo # named argument "foo" is False
$ raku example.raku --no-foo # same
=end code
This option is only available starting in the 2022.12 release of
the Rakudo compiler.
=head3 X<C<numeric-suffix-as-value>|Programs,simpler way for numeric values>
When C«%*SUB-MAIN-OPTS<numeric-suffix-as-value>» is set to a true value,
then single letter arguments can have a numeric value specified as a suffix.
=begin code :lang<shell>
$ raku example.raku --j=2 # named argument "j" is 2
$ raku example.raku -j2 # same
=end code
This option is only available starting in the 2022.12 release of
the Rakudo compiler.
=head2 X<C<is hidden-from-USAGE>|Reference,hidden-from-USAGE>
Expand Down

0 comments on commit 952c044

Please sign in to comment.