App-ParseCommandLineUtils
view release on metacpan or search on metacpan
This is mainly for testing.
This function is not exported.
Arguments ('*' denotes required arguments):
* cmdline* => *str*
You can also feed command-line from standard input, to avoid having
to escape if specified as shell argument.
* module => *str* (default: "Text::ParseWords")
(No description)
Returns an enveloped result (an array).
First element ($status_code) is an integer containing HTTP-like status
code (200 means OK, 4xx caller error, 5xx function error). Second
element ($reason) is a string containing error message, or something
lib/App/ParseCommandLineUtils.pm view on Meta::CPAN
_
args => {
cmdline => {
schema => 'str*',
req => 1,
pos => 0,
cmdline_src => 'stdin_or_args',
description => <<'_',
You can also feed command-line from standard input, to avoid having to escape if
specified as shell argument.
_
},
module => {
schema => ['str*', in=>[sort keys %mods]],
default => 'Text::ParseWords',
},
},
examples => [
lib/App/ParseCommandLineUtils.pm view on Meta::CPAN
This is mainly for testing.
This function is not exported.
Arguments ('*' denotes required arguments):
=over 4
=item * B<cmdline>* => I<str>
You can also feed command-line from standard input, to avoid having to escape if
specified as shell argument.
=item * B<module> => I<str> (default: "Text::ParseWords")
(No description)
=back
Returns an enveloped result (an array).
script/parse-command-line view on Meta::CPAN
=head1 OPTIONS
C<*> marks required options.
=head2 Main options
=over
=item B<--cmdline>=I<s>*
You can also feed command-line from standard input, to avoid having to escape if
specified as shell argument.
Can also be specified as the 1st command-line argument.
=item B<--module>=I<s>
Default value:
"Text::ParseWords"
( run in 0.691 second using v1.01-cache-2.11-cpan-c21f80fb71c )