mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Icingacli should return UNKNOWN code, showUsage() also should return non-zero
This commit is contained in:
parent
65591c829f
commit
27d12163c4
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ abstract class Command
|
|||||||
$this->commandName,
|
$this->commandName,
|
||||||
$action
|
$action
|
||||||
);
|
);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user