Skip to content

Commit

Permalink
Fix command name for --help option
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-factorin committed Jul 18, 2018
1 parent 28ef2a0 commit 8c72412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8c72412

Please sign in to comment.