Skip to content

Commit

Permalink
Make sure it is BC to camelCase calling.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark authored and markstory committed Apr 23, 2017
1 parent 4069d5c commit 0a5a1c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/ConsoleOptionParser.php
Expand Up @@ -665,7 +665,7 @@ public function subcommands()
*/
public function parse($argv)
{
$command = isset($argv[0]) ? $argv[0] : null;
$command = isset($argv[0]) ? Inflector::underscore($argv[0]) : null;
if (isset($this->_subcommands[$command])) {
array_shift($argv);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Shell.php
Expand Up @@ -440,7 +440,7 @@ public function parseDispatchArguments($args)
*/
public function runCommand($argv, $autoMethod = false, $extra = [])
{
$command = isset($argv[0]) ? $argv[0] : null;
$command = isset($argv[0]) ? Inflector::underscore($argv[0]) : null;
$this->OptionParser = $this->getOptionParser();
try {
list($this->params, $this->args) = $this->OptionParser->parse($argv);
Expand Down

0 comments on commit 0a5a1c5

Please sign in to comment.