Skip to content

Commit

Permalink
Handle remarks so far
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 12, 2018
1 parent f540dff commit 7bcc0f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/create-cli.pod6
Expand Up @@ -40,17 +40,17 @@ The sub with the special name C<MAIN> will be executed after all relevant entry
phasers (C<BEGIN>, C<CHECK>, C<INIT>, C<PRE>, C<ENTER>) have been run and
the mainline of the script have been executed. No error will occur if there
is no MAIN sub: your script will then just have to do the work, such as
argument parsinng, in the mainline of the script.
argument parsing, in the mainline of the script.
Any normal exit from the MAIN sub, will result in an exit code of C<0>,
Any normal exit from the MAIN sub will result in an exit code of C<0>,
indicating success. Any return value of the MAIN sub will be ignored.
If an exception is thrown that is not handled inside the MAIN sub, then the
exit code will be C<1>. If the dispatch to MAIN failed, a usage message
will be displayed on STDERR and the exit code will be C<2>.
The command line parameters are present in the C<@*ARGS> dynamic variable
and may be altered in the mainline of the script before the C<MAIN> unit is
getting called.
called.
The signature of (the candidates of the multi) sub MAIN determines which
candidate will actually be called using the standard
Expand Down

0 comments on commit 7bcc0f2

Please sign in to comment.