From 21f487417b6c6af028254a2788f57e547b1041c4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 17 Apr 2013 19:10:06 +0200 Subject: [PATCH] context_wrap options are allowed only at start --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 7a3fff0d..59434197 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -532,7 +532,7 @@ template void context_wrap(const CommandParameters& params, Context& context, Func func) { ParametersParser parser(params, { { "client", true }, { "draft", false }}, - ParametersParser::Flags::None, 1); + ParametersParser::Flags::OptionsOnlyAtStart, 1); Context& real_context = parser.has_option("client") ? ClientManager::instance().get_client(parser.option_value("client")).context()