libmousex-getopt-perl

Mouse role for processing command line options

Description

MouseX::Getopt is a role which provides an alternate constructor for creating objects using parameters passed in from the command line.

MouseX::Getopt attempts to DWIM as much as possible with the command line params by introspecting your class's attributes. It will use the name of your attribute as the command line option, and if there is a type constraint defined, it will configure Getopt::Long to handle the option accordingly.

You can use the trait MouseX::Getopt::Meta::Attribute::Trait or the attribute metaclass MouseX::Getopt::Meta::Attribute to get non-default commandline option names and aliases.

You can use the trait MouseX::Getopt::Meta::Attribute::Trait::NoGetopt or the attribute metaclass MouseX::Getopt::Meta::Attribute::NoGetopt to have MouseX::Getopt ignore your attribute in the commandline options.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/MouseX-Getopt


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libmousex-getopt-perl