| App-Cmd documentation | Contained in the App-Cmd distribution. |
App::Cmd::ArgProcessor - App::Cmd-specific wrapper for Getopt::Long::Descriptive
version 0.311
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| App-Cmd documentation | Contained in the App-Cmd distribution. |
use strict; use warnings; package App::Cmd::ArgProcessor; BEGIN { $App::Cmd::ArgProcessor::VERSION = '0.311'; } # ABSTRACT: App::Cmd-specific wrapper for Getopt::Long::Descriptive sub _process_args { my ($class, $args, @params) = @_; local @ARGV = @$args; require Getopt::Long::Descriptive; Getopt::Long::Descriptive->VERSION(0.084); my ($opt, $usage) = Getopt::Long::Descriptive::describe_options(@params); return ( $opt, [ @ARGV ], # whatever remained usage => $usage, ); } 1; __END__