Skip to content

Commit

Permalink
Add -f as a synonmy for --load-from.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Mar 12, 2016
1 parent 4b65184 commit 34e446f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function prepareInput($argv)
}

// loading from other directory
$pos = array_search('--load-from', $argv);
$pos = array_search('--load-from', $argv) ?: array_search('-f', $argv);
if ($pos !== false) {
if (isset($argv[$pos +1])) {
$this->dir = $argv[$pos +1];
Expand Down

0 comments on commit 34e446f

Please sign in to comment.