NAME
MooX::Options::Docs::ImportedMethods - The imported methods
VERSION
version 4.001
DESCRIPTION
The list of the methods automatically imported into your class.
IMPORTED METHODS
options_usage
It display the usage message and return the exit code
my $t = t->new_with_options();
my $exit_code = 1;
my $pre_message = "str is not valid";
$t->options_usage($exit_code, $pre_message);
This method is also automatically fire if the command option "--help" is passed.
new_with_options
It will parse your command line params and your inline params, validate and call the 'new' method.
myTools --str=ko
t->new_with_options()->str # ko
t->new_with_options(str => 'ok')->str #ok
option
The option keyword replace the 'has' method, and add support special option for the command line only.
See MooX::Options::Docs::Option for the documentation.
SEE ALSO
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.