Permalink
Browse files

No need to create command to call help.

Just call it right on the sqitch object, instead.
  • Loading branch information...
1 parent cac8de4 commit d2e9baea6ac79c5d8319381d1c2f88a983053d0b @theory committed Apr 28, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/App/Sqitch/Command.pm
View
4 lib/App/Sqitch/Command.pm
@@ -53,9 +53,7 @@ sub load {
die $_ unless /^Can't locate/;
# Suggest help if it's not a valid command.
- __PACKAGE__->new({ sqitch => $p->{sqitch} })->help(
- qq{"$p->{command}" is not a valid command.}
- );
+ $p->{sqitch}->help(qq{"$p->{command}" is not a valid command.});
};
# Merge the command-line options and configuration parameters

0 comments on commit d2e9bae

Please sign in to comment.