|
2 | 2 |
|
3 | 3 | =TITLE Command Line Interface
|
4 | 4 |
|
5 |
| -=SUBTITLE Creating your own CLI in Perl 6 |
| 5 | +=SUBTITLE Creating your own CLI in Perl 6 |
6 | 6 |
|
7 | 7 | X<|command line arguments>
|
8 | 8 | =head1 Command Line Interface - an overview
|
9 | 9 |
|
10 |
| -The default command line interface of Perl 6 scripts consists of three parts: |
| 10 | +The default command line interface of Perl 6 scripts consists of three parts: |
11 | 11 |
|
12 | 12 | =item parsing the command line parameters into a L<capture|/type/Capture>
|
13 | 13 |
|
@@ -160,7 +160,7 @@ Which would improve the usage message like this:
|
160 | 160 | $ perl6 frobnicate.p6 doesntexist.dat
|
161 | 161 | Usage:
|
162 | 162 | frobnicate.p6 [--length=<Int>] [--verbose] [<file>]
|
163 |
| - |
| 163 | +
|
164 | 164 | [<file>] an existing file to frobnicate
|
165 | 165 | --length=<Int> length needed for frobnication
|
166 | 166 | --verbose required verbosity
|
@@ -279,7 +279,7 @@ the compiler will output a default generated usage message.
|
279 | 279 | The default usage message is available inside C<sub USAGE> via the read-only
|
280 | 280 | C<$*USAGE> variable. It will be generated based on available C<sub MAIN>
|
281 | 281 | candidates and their parameters. As shown before, you can specify an
|
282 |
| -additional extended description for each candidate using a |
| 282 | +additional extended description for each candidate using a |
283 | 283 | C<#|(...)> Pod block to set L«C<WHY>|/routine/WHY».
|
284 | 284 |
|
285 | 285 | =head1 Intercepting CLI argument parsing (2018.10, v6.d and later)
|
|
0 commit comments