| 1 | 17 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 17 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package App::Cmd::ArgProcessor 0.340; | ||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: App::Cmd-specific wrapper for Getopt::Long::Descriptive | ||||||||||
| 7 | |||||||||||
| 8 | 69 | ▶ | sub _process_args { | ||||||||
|
Subroutine
_process_args: called CC=2 SCAR=7.0
| |||||||||||
| 9 | 69 | my ($class, $args, @params) = @_; | |||||||||
| 10 | 69 | local @ARGV = @$args; | |||||||||
| 11 | |||||||||||
| 12 | 69 | require Getopt::Long::Descriptive; | |||||||||
| 13 | 69 | ▶ | Getopt::Long::Descriptive->VERSION(0.116) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | if Getopt::Long::Descriptive->VERSION; | ||||||||||
| 15 | |||||||||||
| 16 | 69 | my ($opt, $usage) = Getopt::Long::Descriptive::describe_options(@params); | |||||||||
| 17 | |||||||||||
| 18 | return ( | ||||||||||
| 19 | 67 | $opt, | |||||||||
| 20 | [ @ARGV ], # whatever remained | ||||||||||
| 21 | usage => $usage, | ||||||||||
| 22 | ); | ||||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 17 | 1; | |||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||