our $VERSION = '0.08';
our $AUTHORITY = 'cpan:STEVAN';
-has ARGV => (is => 'rw', isa => 'ArrayRef');
-has extra_argv => (is => 'rw', isa => 'ArrayRef');
+has ARGV => (is => 'rw', isa => 'ArrayRef', documentation => "hidden");
+has extra_argv => (is => 'rw', isa => 'ArrayRef', documentation => "hidden");
sub new_with_options {
my ($class, @params) = @_;
}
sub _parse_argv {
- my ( $class, @args ) = @_;
-
- my ( $params, $argv_copy, $argv_mangled ) = $class->_call_getopt(@args);
-
- return (
- argv_copy => $argv_copy,
- argv => $argv_mangled,
- params => $params,
- );
-}
-
-sub _call_getopt {
my ( $class, %params ) = @_;
local @ARGV = @{ $params{argv} || \@ARGV };
} keys %$parsed_options,
);
- return ( \%constructor_args, $argv_copy, $argv_mangled );
+ return (
+ params => \%constructor_args,
+ argv_copy => $argv_copy,
+ argv => $argv_mangled,
+ usage => $usage
+ );
}
sub _gld_spec {