Permalink
Browse files

allow optional arguments on 'dispatch_to' options

  • Loading branch information...
1 parent c731b48 commit f83cb45471c60b3175d9cda57f6f516586d608e1 @grantm committed Jun 4, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/bcvi
View
@@ -485,8 +485,7 @@ sub dispatch_option {
my @set;
$self->each_option(sub {
my($o) = @_;
- push @set, $o
- if my $method = $o->{dispatch_to} && $self->opt($o->{name});
+ push @set, $o if $o->{dispatch_to} && defined $self->opt($o->{name});
});
return unless @set;
if(@set > 1) {

0 comments on commit f83cb45

Please sign in to comment.