[Bps-public-commit] r12174 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu May 8 19:57:19 EDT 2008


Author: sartak
Date: Thu May  8 19:57:19 2008
New Revision: 12174

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/CLI.pm

Log:
 r55466 at onn:  sartak | 2008-05-08 19:57:07 -0400
 Clean up command invocation 404


Modified: Prophet/trunk/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI.pm	Thu May  8 19:57:19 2008
@@ -57,8 +57,8 @@
 
    my @extreme_fallback_commands = (     $self->app_class . "::CLI::Command::" . ucfirst(lc( $commands[-1] )),    # App::SD::CLI::Command::List
         "Prophet::CLI::Command::" . ucfirst( lc $commands[-1] ),    # Prophet::CLI::Command::List
-        $self->app_class . "::CLI::Comand::NotFound",
-        "Prophet::CLI::Comand::NotFound"
+        $self->app_class . "::CLI::Command::NotFound",
+        "Prophet::CLI::Command::NotFound"
     );
 
     my $class;
@@ -437,7 +437,7 @@
 sub run {
     my $self = shift;
     $self->fatal_error( "The command you ran, '"
-            . $self->command
+            . ($self->command || '')
             . "', could not be found. Perhaps running --help would help?" );
 }
 



More information about the Bps-public-commit mailing list