#! /usr/bin/env perl
use strict;
use warnings;
use MyApp::Script;
MyApp::Script->new_with_actions;

On the command line:

$ ./script.pl dump --boo Hello
Message: [Hello]

DESCRIPTION

MooX::Options::Actions is a set of packages designed to make setting up and creating command line applications really easy. It automatically imports Moo, MooX::Options, namespace::clean, and a "new_with_actions" in MooX::Options::Actions::Builder function to set up the top level commands. this means you only need to include this one module, and then you can set up options as from MooX::Options, and set up commands to act on those options by creating subroutines with the cmd_ prefix.

AUTHOR

Tom Bloor <t.bloor@shadowcat.co.uk>

COPYRIGHT

Copyright 2017- Tom Bloor

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.