From 8c72412dff22b2cb99a7a423f23084331b396a27 Mon Sep 17 00:00:00 2001 From: jm-factorin Date: Wed, 18 Jul 2018 17:26:39 +0800 Subject: [PATCH] Fix command name for --help option --- src/Shell.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shell.php b/src/Shell.php index 0bb5673..69c02fe 100644 --- a/src/Shell.php +++ b/src/Shell.php @@ -64,8 +64,8 @@ protected static function getCommands() */ protected static function createCommand($commandName, $options = array()) { - $commandName = Inflector::camelcase(sprintf('%s_command', $commandName)); - $command = sprintf('App\\Commands\\%s', $commandName); + $className = Inflector::camelcase(sprintf('%s_command', $commandName)); + $command = sprintf('App\\Commands\\%s', $className); if (class_exists($command) === false) { throw new Exception(sprintf('Command "%s" not found', $command));