Changeset 20902

Show
Ignore:
Timestamp:
10/07/08 18:09:05 (3 months ago)
Author:
yappo
Message:

--init の時は select しない

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Module-Setup/trunk/lib/Module/Setup.pm

    r20899 r20902  
    5757    } 
    5858 
    59     $options->{flavor}       ||= $self->select_flavor; 
    60     $options->{flavor_class} ||= 'Default'; 
    61  
    6259    no warnings 'redefine'; 
    6360    local *has_term = $self->set_has_term_sub if $set_has_term; ## no critic 
     
    6562    my @argv = defined $argv && ref($argv) eq 'ARRAY' ? @{ $argv } : @ARGV; 
    6663 
     64    $options->{flavor_class} ||= 'Default'; 
     65 
    6766    # create flavor 
    6867    if ($options->{init}) { 
    69         $options->{flavor} = shift @argv if @argv; 
     68        $options->{flavor}   = shift @argv if @argv; 
     69        $options->{flavor} ||= 'default'; 
    7070        return $self->create_flavor($options); 
    7171    }