Skip to content

Commit 952c044

Browse files
committed
Document %SUB-MAIN-OPTS<allow-no|numeric-suffix-as-value>
1 parent e41bf64 commit 952c044

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

doc/Language/create-cli.pod6

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,35 @@ $ raku example.raku -abc=asdf # Error
353353
$ raku example.raku -/abc # Error
354354
=end code
355355
356-
This option is only available starting in the 2020.10 release.
356+
This option is only available starting in the 2020.10 release of the
357+
Rakudo compiler.
358+
359+
=head3 X<C<allow-no>|Programs,allow no- to negate>
360+
361+
When C«%*SUB-MAIN-OPTS<allow-no>» is set to a true value, then negation
362+
of arguments on the command line can also be indicated by using the
363+
C<no-> instead of C</>.
364+
365+
=begin code :lang<shell>
366+
$ raku example.raku --/foo # named argument "foo" is False
367+
$ raku example.raku --no-foo # same
368+
=end code
369+
370+
This option is only available starting in the 2022.12 release of
371+
the Rakudo compiler.
372+
373+
=head3 X<C<numeric-suffix-as-value>|Programs,simpler way for numeric values>
374+
375+
When C«%*SUB-MAIN-OPTS<numeric-suffix-as-value>» is set to a true value,
376+
then single letter arguments can have a numeric value specified as a suffix.
377+
378+
=begin code :lang<shell>
379+
$ raku example.raku --j=2 # named argument "j" is 2
380+
$ raku example.raku -j2 # same
381+
=end code
382+
383+
This option is only available starting in the 2022.12 release of
384+
the Rakudo compiler.
357385
358386
=head2 X<C<is hidden-from-USAGE>|Reference,hidden-from-USAGE>
359387

0 commit comments

Comments
 (0)