From 75682dc8e88b643109cffdd3e0798bec0f950b1f Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Tue, 13 Jan 2015 14:05:28 +0100 Subject: [PATCH] Fix single global options not working correctly on non-Linux systems fixes #8196 --- lib/cli/clicommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/clicommand.cpp b/lib/cli/clicommand.cpp index 76ac23230..3b42ffc89 100644 --- a/lib/cli/clicommand.cpp +++ b/lib/cli/clicommand.cpp @@ -171,7 +171,7 @@ bool CLICommand::ParseCommand(int argc, char **argv, po::options_description& vi typedef std::map, CLICommand::Ptr>::value_type CLIKeyValue; std::vector best_match; - int arg_end = 1; + int arg_end = 0; BOOST_FOREACH(const CLIKeyValue& kv, GetRegistry()) { const std::vector& vname = kv.first;