App-GetoptLongUtils
view release on metacpan or search on metacpan
script/parse-getopt-long-spec view on Meta::CPAN
#!perl
our $DATE = '2017-08-10'; # DATE
our $VERSION = '0.006'; # VERSION
use 5.010001;
use strict;
use warnings;
use Data::Dmp;
use Getopt::Long::Util qw(parse_getopt_long_opt_spec);
for (@ARGV) {
say "$_: ", dmp(parse_getopt_long_opt_spec($_));
}
# ABSTRACT: Parse Getopt::Long option specification
# PODNAME: parse-getopt-long-spec
__END__
=pod
=encoding UTF-8
=head1 NAME
parse-getopt-long-spec - Parse Getopt::Long option specification
=head1 VERSION
This document describes version 0.006 of parse-getopt-long-spec (from Perl distribution App-GetoptLongUtils), released on 2017-08-10.
=head1 SYNOPSIS
% parse-getopt-long-spec --foo=s '--bar!' '--baz=i@'
--foo=s: {dash_prefix=>"--",desttype=>"",opts=>["foo"],type=>"s"}
--bar!: {dash_prefix=>"--",is_neg=>1,opts=>["bar"]}
--baz=i@: {dash_prefix=>"--",desttype=>"\@",opts=>["baz"],type=>"i"}
/x: undef
=head1 DESCRIPTION
This is a helper script. You feed it one or more option specifications and the
script will parse them using L<Getopt::Long::Util>'s
C<parse_getopt_long_opt_spec> and show you the results.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-GetoptLongUtils>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-GetoptLongUtils>.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-GetoptLongUtils>
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.
=head1 SEE ALSO
L<Getopt::Long>
L<Getopt::Long::Util>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
( run in 2.796 seconds using v1.01-cache-2.11-cpan-d7a12ab2c7f )