Data-Object-Cli

 view release on metacpan or  search on metacpan

t/Data_Object_Cli.t  view on Meta::CPAN

  ok $result->vars;

  my $returned = $result->main;

  like $returned, qr/usage:/;

  $result
});

$subs->example(-1, 'auto', 'method', fun($tryable) {
  local @ARGV;

  $ARGV[0] = 'init';

  ok my $result = $tryable->result;
  ok my $returned = $result->main;
  is $returned, 1234567890;

  $result->auto
});

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

( run in 0.850 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )