#!perl

our $DATE = '2016-10-21'; # DATE
our $VERSION = '0.003'; # 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.003 of parse-getopt-long-spec (from Perl distribution App-GetoptLongUtils), released on 2016-10-21.

=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

This software is copyright (c) 2016 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.

=cut
