App-Easer
view release on metacpan or search on metacpan
lib/App/Easer/Tutorial/V2_008.pod view on Meta::CPAN
$ root-exec bar
bar here!
$ root-exec
MAIN (root) here!
=head3 You might also want to set C<fallback_to>...
While the example in the previous section works, it's still a bit
fragile, because it makes the upper command able to run with regular
options but not with non-option command-line arguments (i.e. those that
end up populating C<residual_args>):
$ root-exec galook
cannot find sub-command 'galook'
This happens because L<App::Easer> defaults to looking for a child
command and complains under the assumption that the user I<might> have
mistyped a sub-command's name.
( run in 0.778 second using v1.01-cache-2.11-cpan-364913b4093 )