Icingacli should return UNKNOWN code, showUsage() also should return non-zero

This commit is contained in:
Max Kozlov 2019-05-21 09:48:38 +03:00
parent 65591c829f
commit 27d12163c4
2 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,8 @@ class Cli extends ApplicationBootstrap
if ($this->showBenchmark) { if ($this->showBenchmark) {
Benchmark::dump(); Benchmark::dump();
} }
if (false === $result) { if ($result === false) {
exit(1); exit(3);
} }
} }

View File

@ -197,6 +197,7 @@ abstract class Command
$this->commandName, $this->commandName,
$action $action
); );
return false;
} }
public function init() public function init()