line |
true |
false |
branch |
40
|
61 |
206 |
$args ? : |
42
|
61 |
206 |
if ($prev) |
43
|
0 |
61 |
if $prev->{'eatall'} |
44
|
0 |
61 |
if $prev->{'collect'} |
45
|
0 |
61 |
if $prev->{'trail'} |
57
|
0 |
65 |
if $arg{'eatall'} and $arg{'collect'} |
59
|
0 |
267 |
if keys %spec |
62
|
4 |
263 |
if ($name eq '...') { } |
66
|
0 |
263 |
if $name =~ /\W/ |
83
|
0 |
134 |
if keys %spec |
85
|
0 |
134 |
unless $name =~ s/=(.*)$// |
88
|
0 |
134 |
unless $opt{'type'} =~ /^[\$\+]$/ |
119
|
0 |
0 |
unless (exists $commands{$cmd}) |
120
|
0 |
0 |
$command ? : |
134
|
0 |
0 |
unless ($subcmd) |
156
|
0 |
0 |
if ($cinv->peek_token eq '--') |
162
|
0 |
0 |
if (not $no_more_opts and $cinv->peek_remaining =~ /^-/) { } |
167
|
0 |
0 |
unless $optspec and exists $optspec->{$optname} |
172
|
0 |
0 |
if ($optspec->{$optname}{'type'} eq '$') { } |
174
|
0 |
0 |
unless defined $optvalue |
184
|
0 |
0 |
if not @argspec or $argindex >= @argspec |
188
|
0 |
0 |
if ($a->{'eatall'}) { } |
|
0 |
0 |
elsif ($a->{'collect'}) { } |
|
0 |
0 |
elsif ($a->{'trail'}) { } |
195
|
0 |
0 |
unless ref $args[-1] |
211
|
0 |
0 |
if ($a->{'collect'}) { } |
|
0 |
0 |
elsif ($a->{'trail'}) { } |
212
|
0 |
0 |
unless ref $args[-1] |
220
|
0 |
0 |
unless $a->{'optional'} |
225
|
0 |
0 |
if $optspec |
230
|
0 |
0 |
if ($@) { } |
250
|
0 |
0 |
unless (defined $cmd) |
256
|
0 |
0 |
unless (exists $commands{$cmd}) |
257
|
0 |
0 |
$command ? : |
268
|
0 |
0 |
if ($command) |
272
|
0 |
0 |
if (keys %commands) |
273
|
0 |
0 |
if $command |
279
|
0 |
0 |
if ($sub->is_default) { } |
298
|
0 |
0 |
if $a->{'eatall'} |
299
|
0 |
0 |
if $a->{'collect'} |
300
|
0 |
0 |
if $a->{'optional'} |
306
|
0 |
0 |
if (my $opts = $command->opts) |
313
|
0 |
0 |
defined $opts->{$opt}{'desc'} ? : |
315
|
0 |
0 |
$opttype eq '$' ? : |
321
|
0 |
0 |
if (my $detail = $command->detail) |
346
|
0 |
0 |
if defined $self->{'widget_commandentry'} |
358
|
0 |
0 |
if ($text =~ m[^/]) { } |
|
0 |
0 |
elsif ($self->can('enter_text')) { } |