ScriptX::Getopt::Long - Parse command-line options using Getop::Long
This document describes version 0.000004 of ScriptX::Getopt::Long (from Perl distribution ScriptX), released on 2020-10-01.
use ScriptX::Getopt::Long => { spec => [ 'foo=s' => sub { ... }, 'bar' => sub { ... }, ], };
This plugin basically just configures Getopt::Long:
Getopt::Long::Configure("gnu_getopt", "no_ignore_case");
then pass the spec to GetOptions().
GetOptions()
Bool. Optional. Whether to abort script execution on GetOptions() failure.
Array. Required. Specification to be passed to Getopt::Long's GetOptions.
Please visit the project's homepage at https://metacpan.org/release/ScriptX.
Source repository is at https://github.com/perlancar/perl-ScriptX.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=ScriptX
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Getopt::Long
ScriptX::Getopt::Specless
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ScriptX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ScriptX
CPAN shell
perl -MCPAN -e shell install ScriptX
For more information on module installation, please visit the detailed CPAN module installation guide.