Skip to content

Commit

Permalink
Make passing "--working ." to the shell obsolete, when invoking Conso…
Browse files Browse the repository at this point in the history
…le/cake.php directly
  • Loading branch information
ravage84 committed Nov 2, 2016
1 parent f036680 commit f2981fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Console/cake.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@
}
unset($dispatcher, $root, $ds);

// Make passing "--working ." to the shell obsolete, when invoking Console/cake.php directly
if (!in_array('--working', $argv)) {
$argv[] = '--working';
$argv[] = dirname(dirname(__FILE__));
}

return ShellDispatcher::run($argv);

0 comments on commit f2981fe

Please sign in to comment.