NAME

MooX::Options - Options eXtension for Object Class

VERSION

version 4.000

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

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.