Skip to content

Commit 4db41fb

Browse files
committed
Improving a bit indexing and other things, refs #3673
1 parent c2c28ea commit 4db41fb

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/Language/create-cli.pod6

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ raku MAIN-enum.raku FLAG_BAR
219219
but will die if called with something that is not a C<Flag>.
220220
221221
X<|%*SUB-MAIN-OPTS>
222-
=head2 %*SUB-MAIN-OPTS
222+
=head2 C<%*SUB-MAIN-OPTS>
223223
224224
It's possible to alter how arguments are processed before they're passed
225225
to C<sub MAIN {}> by setting options in the C<%*SUB-MAIN-OPTS> hash. Due to
@@ -238,7 +238,7 @@ For instance:
238238
Available options are:
239239
240240
X<|named-anywhere>
241-
=head3 named-anywhere
241+
=head3 C<named-anywhere>
242242
243243
By default, named arguments passed to the program (i.e., C<MAIN>)
244244
cannot appear after any positional argument. However, if
@@ -250,8 +250,8 @@ the above program can be called with:
250250
$ raku example.raku 1 --c=2 3 --d=4
251251
=end code
252252
253-
X<|bundling>
254-
=head3 bundling
253+
X<|command-line argument bundling>
254+
=head3 C<bundling>
255255
256256
When C«%*SUB-MAIN-OPTS<bundling>» is set to a true value, single letter named
257257
arguments can be bundled together with a single dash. The following two
@@ -262,7 +262,8 @@ $ raku example.raku -a -b -c
262262
$ raku example.raku -abc
263263
=end code
264264
265-
Bundled arguments can neither be negated, nor assigned a value though:
265+
Bundled arguments can be understood as flags, that can neither be negated, nor
266+
assigned a value though:
266267
267268
=begin code :lang<shell>
268269
$ raku example.raku -/a # OK
@@ -271,8 +272,10 @@ $ raku example.raku -abc=asdf # Error
271272
$ raku example.raku -/abc # Error
272273
=end code
273274
275+
This option is only available starting in the 2020.10 release.
276+
274277
X<|hidden-from-USAGE>
275-
=head2 is hidden-from-USAGE
278+
=head2 C<is hidden-from-USAGE>
276279
277280
Sometimes you want to exclude a C<MAIN> candidate from being shown in any
278281
automatically generated usage message. This can be achieved by adding

0 commit comments

Comments
 (0)