Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grinnz/getopt-long-modern
Getopt::Long::Modern - Use Getopt::Long with modern defaults
https://github.com/grinnz/getopt-long-modern
Last synced: 5 days ago
JSON representation
Getopt::Long::Modern - Use Getopt::Long with modern defaults
- Host: GitHub
- URL: https://github.com/grinnz/getopt-long-modern
- Owner: Grinnz
- License: other
- Created: 2015-09-06T21:49:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T22:08:07.000Z (over 6 years ago)
- Last Synced: 2024-11-13T05:14:18.747Z (about 2 months ago)
- Language: Perl
- Homepage: https://metacpan.org/pod/Getopt::Long::Modern
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
=pod
=head1 NAME
Getopt::Long::Modern - Use Getopt::Long with modern defaults
=head1 SYNOPSIS
use Getopt::Long::Modern;
GetOptions(
"f|foo=i" => \my $foo,
"b|bar" => \my $bar,
"Z|baz=s" => \my @baz,
);=head1 DESCRIPTION
L is a simple wrapper of L to reduce the
amount of typing needed to get modern defaults, and to avoid having to remember
the correct incantations. See L
for details on specifying options using L.Only the C function from L is exported. Additional
L configuration may be passed as import parameters.use Getopt::Long::Modern qw(auto_help auto_version pass_through);
For any more advanced usage, you should probably use L directly.
The equivalent L configuration to using this module is:use Getopt::Long qw(:config gnu_getopt no_ignore_case);
=head1 DEFAULTS
L currently sets the following configuration options by
default. See L for more details on
available configuration.=head2 gnu_getopt
This sets C to allow C<--opt=> for setting an empty string option,
C to allow short options to be bundled together, C to allow
specifying options before or after other arguments, and C to
disallow C<+> for specifying options.=head2 no_ignore_case
This makes all options case-sensitive, which is expected and required when
explicitly specifying short options of the same character but different case.=head1 BUGS
Report any issues on the public bugtracker.
=head1 AUTHOR
Dan Book
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by Dan Book.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=head1 SEE ALSO
L, L, L
=cut