Amon2-CLI

 view release on metacpan or  search on metacpan

t/03_cli_opt.t  view on Meta::CPAN

use FindBin;
use File::Spec;
use lib File::Spec->catdir($FindBin::Bin, 'lib');

use Test::More;
use Test::Output;

use Amon2::CLI 'MyApp';

{
    local @ARGV = ('--option' => 'bar!');
    Test::Output::stdout_is {
        MyApp->bootstrap->run('Bar');
    } 'bar!', 'cli options';
}

done_testing;

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.618 second using v1.00-cache-2.02-grep-82fe00e-cpan-48ebf85a1963 )