[Bps-public-commit] Prophet branch, master, updated. 0.73-31-g342eac8
sartak at bestpractical.com
sartak at bestpractical.com
Wed Jan 6 18:27:52 EST 2010
The branch, master has been updated
via 342eac8ca1d220c888521bdafdd295fe7cfda270 (commit)
from a599dcc4321d83c4060ff50fa4a5d7f9d847791d (commit)
Summary of changes:
lib/Prophet/CLI/Dispatcher.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 342eac8ca1d220c888521bdafdd295fe7cfda270
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Jan 6 18:27:45 2010 -0500
Handle undef a little better
diff --git a/lib/Prophet/CLI/Dispatcher.pm b/lib/Prophet/CLI/Dispatcher.pm
index 5d2b0bf..ab1d36c 100644
--- a/lib/Prophet/CLI/Dispatcher.pm
+++ b/lib/Prophet/CLI/Dispatcher.pm
@@ -115,7 +115,9 @@ on qr/^(alias(?:es)?|config)?\s+(.*)/ => sub {
on qr/^_gencomp\s*(.*)/ => sub {
my $self = shift;
- print "$_\n" for $self->dispatcher->complete($1);
+ my $path = $1;
+ $path = "" if !defined($path);
+ print "$_\n" for $self->dispatcher->complete($path);
};
sub run_command {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list