Getopt-Long-Complete
view release on metacpan or search on metacpan
t/01-basic.t view on Meta::CPAN
use strict;
use warnings;
use Test::More 0.98;
use Getopt::Long::Complete;
is($REQUIRE_ORDER, 0);
subtest GetOptions => sub {
local @ARGV = ("--foo", "--bar", "baz");
my %opts;
GetOptions(
'foo' => \$opts{foo},
'bar=s' => sub { $opts{bar} = $_[1] },
);
ok($opts{foo});
is($opts{bar}, "baz");
};
DONE_TESTING:
( run in 0.606 second using v1.01-cache-2.11-cpan-49f99fa48dc )