CLI-Driver

 view release on metacpan or  search on metacpan

lib/CLI/Driver/Option.pm  view on Meta::CPAN

package CLI::Driver::Option;

use Modern::Perl;
use Moose;
use namespace::autoclean;
use Kavorka '-all';
use Data::Printer alias => 'pdump';
use CLI::Driver::Deprecated;

use Getopt::Long 'GetOptionsFromArray';
Getopt::Long::Configure('no_ignore_case');
Getopt::Long::Configure('pass_through');

with 'CLI::Driver::CommonRole';

###############################
###### PUBLIC ATTRIBUTES ######
###############################

has class => (
    is  => 'rw',
    isa => 'Str',
);

has cli_arg => (
    is  => 'rw',
    isa => 'Str'
);

has method_arg => (
    is  => 'rw',
    isa => 'Str|Undef'
);

has required => (
    is  => 'rw',
    isa => 'Bool'
);

has hard => (
    is  => 'rw',
    isa => 'Bool',
);

has flag => (
    is  => 'rw',
    isa => 'Bool',
);

has is_array => (
    is  => 'rw',
    isa => 'Bool',
);

has value => (
    is  => 'rw',
    isa => 'Any',
);

has 'use_argv_map' => ( is => 'rw', isa => 'Bool' );

###############################################

method get_signature {



( run in 1.146 second using v1.01-cache-2.11-cpan-39bf76dae61 )