mirror of https://github.com/Icinga/icinga2.git
Fix single global options not working correctly on non-Linux systems
fixes #8196
This commit is contained in:
parent
40cba8eb5d
commit
75682dc8e8
|
@ -171,7 +171,7 @@ bool CLICommand::ParseCommand(int argc, char **argv, po::options_description& vi
|
||||||
typedef std::map<std::vector<String>, CLICommand::Ptr>::value_type CLIKeyValue;
|
typedef std::map<std::vector<String>, CLICommand::Ptr>::value_type CLIKeyValue;
|
||||||
|
|
||||||
std::vector<String> best_match;
|
std::vector<String> best_match;
|
||||||
int arg_end = 1;
|
int arg_end = 0;
|
||||||
|
|
||||||
BOOST_FOREACH(const CLIKeyValue& kv, GetRegistry()) {
|
BOOST_FOREACH(const CLIKeyValue& kv, GetRegistry()) {
|
||||||
const std::vector<String>& vname = kv.first;
|
const std::vector<String>& vname = kv.first;
|
||||||
|
|
Loading…
Reference in New Issue