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) {
Benchmark::dump();
}
if (false === $result) {
exit(1);
if ($result === false) {
exit(3);
}
}

View File

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