Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Oct 7, 2014
1 parent aad625d commit f2e17a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Fresque.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@ public function __construct()
*/
public function callCommand($command)
{
if (($settings = $this->loadSettings($command)) === false) {
exit(1);
}

$args = $this->input->getArguments();

Expand All @@ -343,7 +340,7 @@ public function callCommand($command)
if ($command === null || !array_key_exists($command, $this->commandTree)) {
$this->help($command);
} else {
if ($this->input->getOption('help')->value === true) {
if ($this->input->getOption('help')->value === true or $command == 'help' ) {
$this->output->outputLine();
$this->output->outputLine($this->commandTree[$command]['help']);

Expand Down Expand Up @@ -378,6 +375,9 @@ public function callCommand($command)
$arg = $name;
}
}
if (($settings = $this->loadSettings($command)) === false) {
exit(1);
}

$unrecognized = array_diff(array_keys($this->input->getOptionValues()), array_values($allowed));
if (!empty($unrecognized)) {
Expand Down

0 comments on commit f2e17a3

Please sign in to comment.