Fix single global options not working correctly on non-Linux systems

fixes #8196
This commit is contained in:
Jean Flach 2015-01-13 14:05:28 +01:00
parent 40cba8eb5d
commit 75682dc8e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
std::vector<String> best_match;
int arg_end = 1;
int arg_end = 0;
BOOST_FOREACH(const CLIKeyValue& kv, GetRegistry()) {
const std::vector<String>& vname = kv.first;