Getopt-Class
view release on metacpan or search on metacpan
t/003_man.t view on Meta::CPAN
# -*- perl -*-
use Test::More qw( no_plan );
use strict;
use warnings;
use lib './lib';
use Scalar::Util ();
BEGIN { use_ok( 'Getopt::Class' ) || BAIL_OUT( "Unable to load Getopt::Class" ); }
our( $dict, $DEBUG, $VERBOSE, $VERSION, $HELP, $MAN );
require( './t/dictionary.pl' );
{
local @ARGV = qw( --man );
my $opt3 = Getopt::Class->new({
dictionary => $dict,
debug => 0,
});
my $opts3 = $opt3->exec;
is( $MAN, 'pod2usage man', 'Man code' );
}
( run in 2.138 seconds using v1.01-cache-2.11-cpan-64ef6c95b5d )