Changeset a82e091 for perl


Ignore:
Timestamp:
Aug 21, 2008, 12:01:23 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7a45a72
Parents:
38a7f22
Message:
Rename :reload to :reload-module, as :reload is already in use by a number of custom .owlconfs including my own
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/ModuleLoader.pm

    r167044b ra82e091  
    7171}
    7272
    73 sub reload_cmd {
     73sub reload_module_cmd {
    7474    my $class = shift;
    7575    shift; # Command
    7676    my $module = shift;
    7777    unless(defined($module)) {
    78         die("Usage: reload [MODULE]");
     78        die("Usage: reload-module [MODULE]");
    7979    };
    8080    $class->reload_module($module);
     
    8787                           description => q{Reloads all modules located in ~/.owl/modules and the system modules directory}
    8888                          });
    89     BarnOwl::new_command('reload', sub {BarnOwl::ModuleLoader->reload_cmd(@_)}, {
     89    BarnOwl::new_command('reload-module', sub {BarnOwl::ModuleLoader->reload_module_cmd(@_)}, {
    9090                           summary => 'Reload one module',
    91                            usage   => 'reload [MODULE]',
     91                           usage   => 'reload-module [MODULE]',
    9292                           description => q{Reloads a single module located in ~/.owl/modules or the system modules directory}
    9393                          });
Note: See TracChangeset for help on using the changeset viewer.