[Bps-public-commit] SD branch, master, updated. 98050315fdbee52f7bdacdce2fe015dd4309142e

jesse jesse at bestpractical.com
Mon Aug 17 17:44:48 EDT 2009


The branch, master has been updated
       via  98050315fdbee52f7bdacdce2fe015dd4309142e (commit)
      from  653cbdcbb615a279daf151c926a3f743be986604 (commit)

Summary of changes:
 lib/App/SD/CLI/Dispatcher.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 98050315fdbee52f7bdacdce2fe015dd4309142e
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Aug 17 17:44:32 2009 -0400

    fixing a couple bugs christine missed in her latest updates

diff --git a/lib/App/SD/CLI/Dispatcher.pm b/lib/App/SD/CLI/Dispatcher.pm
index a651c2d..d8e132c 100644
--- a/lib/App/SD/CLI/Dispatcher.pm
+++ b/lib/App/SD/CLI/Dispatcher.pm
@@ -55,7 +55,7 @@ under help => sub {
     on qr/^(\S+)$/ => sub {
        my $self = shift;
        my $topic = $1;
-       die "Cannot find help on topic '$topic'. Try '"._format_cmd_name('help')."'?\n";
+       die "Cannot find help on topic '$topic'. Try '".$self->cli->get_script_name()."help'?\n";
     };
 };
 
@@ -87,7 +87,8 @@ on qr'.*' => sub {
     next_rule if $self->cli->app_handle->handle->replica_exists;
 
     print join("\n","No SD database was found at " . $self->cli->app_handle->handle->url(),
-               qq{Type "} . _format_cmd_name('help init'). qq{" or "} . _format_cmd_name(' help environment').qq{ for tips on how to sort that out.});
+               qq{Type "} . $self->cli->get_script_name(). qq{help init" or "}. 
+			   $self->cli->get_script_name().qq{help environment" for tips on how to sort that out.});
     exit 1;
 };
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list