Skip to content

Commit

Permalink
Show error message before output help when missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
littleylv committed Sep 13, 2017
1 parent d8a4ff8 commit 6da6d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/Shell.php
Expand Up @@ -508,6 +508,7 @@ public function runCommand($argv, $autoMethod = false, $extra = [])
return $this->main(...$this->args);
}

$this->err('No subcommand provided. Choose one of the available subcommands.', 2);
$this->out($this->OptionParser->help($command));

return false;
Expand Down

0 comments on commit 6da6d0b

Please sign in to comment.