NAME
MooX::Options - Options eXtension for Object Class
VERSION
version 4.001
SYNOPSIS
package myOptions;
use Moo;
use MooX::Options;
option 'show_this_file' => (
is => 'ro',
format => 's',
required => 1,
doc => 'the file to display'
);
1;
package main;
use feature 'say';
use Path::Class;
my $opt = myOptions->new_with_options;
say "Content of the file : ",
file($opt->show_this_file)->slurp;
DESCRIPTION
Create a command line tools with your Mo, Moo, Moose objects.
MooX::Options pass specific parameters to Getopt::Long::Descriptive to generate from your attribute the command line options.
DOCUMENTATIONS
EXTERNAL EXAMPLES
THANKS
- Matt S. Trout (mst) <mst@shadowcat.co.uk> : For his patience and advice.
- Tomas Doran (t0m) <bobtfish@bobtfish.net> : To help me release the new version, and using it :)
- Torsten Raudssus (Getty) : to use it a lot in DuckDuckGo (go to see MooX module also)
- Jens Rehsack (REHSACK) : Use with PkgSrc, and many really good idea (MooX::Cmd, MooX::ConfigFromFile, and more to come I'm sure)
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/celogeek/MooX-Options/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
celogeek <me@celogeek.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by celogeek <me@celogeek.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.