Merge pull request #3570 from MVKozlov/patch-1
Return non-zero on display usage
This commit is contained in:
commit
5d9aa0895f
|
@ -146,11 +146,14 @@ class Cli extends ApplicationBootstrap
|
|||
{
|
||||
$loader = $this->cliLoader();
|
||||
$loader->parseParams();
|
||||
$loader->dispatch();
|
||||
$result = $loader->dispatch();
|
||||
Benchmark::measure('All done');
|
||||
if ($this->showBenchmark) {
|
||||
Benchmark::dump();
|
||||
}
|
||||
if ($result === false) {
|
||||
exit(3);
|
||||
}
|
||||
}
|
||||
|
||||
protected function dispatchEndless()
|
||||
|
|
|
@ -198,6 +198,7 @@ abstract class Command
|
|||
$this->commandName,
|
||||
$action
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
public function init()
|
||||
|
|
Loading…
Reference in New Issue