@@ -219,7 +219,7 @@ raku MAIN-enum.raku FLAG_BAR
219
219
but will die if called with something that is not a C < Flag > .
220
220
221
221
X < |%*SUB-MAIN-OPTS >
222
- = head2 %*SUB-MAIN-OPTS
222
+ = head2 C < %*SUB-MAIN-OPTS >
223
223
224
224
It's possible to alter how arguments are processed before they're passed
225
225
to C < sub MAIN {} > by setting options in the C < %*SUB-MAIN-OPTS > hash. Due to
@@ -238,7 +238,7 @@ For instance:
238
238
Available options are:
239
239
240
240
X < |named-anywhere >
241
- = head3 named-anywhere
241
+ = head3 C < named-anywhere >
242
242
243
243
By default, named arguments passed to the program (i.e., C < MAIN > )
244
244
cannot appear after any positional argument. However, if
@@ -250,8 +250,8 @@ the above program can be called with:
250
250
$ raku example.raku 1 --c=2 3 --d=4
251
251
= end code
252
252
253
- X < |bundling >
254
- = head3 bundling
253
+ X < |command-line argument bundling >
254
+ = head3 C < bundling >
255
255
256
256
When C « %*SUB-MAIN-OPTS < bundling > » is set to a true value, single letter named
257
257
arguments can be bundled together with a single dash. The following two
@@ -262,7 +262,8 @@ $ raku example.raku -a -b -c
262
262
$ raku example.raku -abc
263
263
= end code
264
264
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:
266
267
267
268
= begin code :lang<shell>
268
269
$ raku example.raku -/a # OK
@@ -271,8 +272,10 @@ $ raku example.raku -abc=asdf # Error
271
272
$ raku example.raku -/abc # Error
272
273
= end code
273
274
275
+ This option is only available starting in the 2020.10 release.
276
+
274
277
X < |hidden-from-USAGE >
275
- = head2 is hidden-from-USAGE
278
+ = head2 C < is hidden-from-USAGE >
276
279
277
280
Sometimes you want to exclude a C < MAIN > candidate from being shown in any
278
281
automatically generated usage message. This can be achieved by adding
0 commit comments