Changeset 163

Show
Ignore:
Timestamp:
06/06/04 10:02:55 (4 years ago)
Author:
svn
Message:

Class-based and hash-based plugins both work correctly now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • manage/trunk/CLI/CLI.pm

    r162 r163  
    5858                                                if (ref($plugin) eq 'HASH') { 
    5959                                                        $self->{plugins}->{$file} = new CLI::Plugin(grammar => $plugin); 
    60                                                         $self->merge($plugin->{grammar}); 
    6160                                                } else { 
    6261                                                        $self->{plugins}->{$file} = $plugin; 
    63                                                         $self->merge($plugin->{grammar}); 
    6462                                                } 
     63                                                $self->merge($self->{plugins}->{$file}->{grammar}); 
    6564                                        } else { 
    6665                                                $| = 1;