From c90bdb98629d51806a8effce3f44f9a9ca6af6bc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 26 Aug 2014 22:10:54 +0100 Subject: [PATCH] Fix handling of -- in parameter parser --- src/parameters_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parameters_parser.cc b/src/parameters_parser.cc index c6366a3cc..06c081e08 100644 --- a/src/parameters_parser.cc +++ b/src/parameters_parser.cc @@ -19,7 +19,7 @@ ParametersParser::ParametersParser(ParameterList params, bool only_pos = desc.flags & ParameterDesc::Flags::SwitchesAsPositional; for (size_t i = 0; i < params.size(); ++i) { - if (params[i] == "--") + if (not only_pos and params[i] == "--") only_pos = true; else if (not only_pos and params[i][0] == '-') {