From fac222a4274da423acadb98173dc2023050b648f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 3 Mar 2013 17:25:40 +0100 Subject: Strongly typed options support * non builtins options require declaration using the decl command * At the moment, only int and string options are supported, however the goal of this change is to provide a consistent way to support more complex options, namely lists and booleans --- src/command_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_manager.cc') diff --git a/src/command_manager.cc b/src/command_manager.cc index 267dc44e..1a55a957 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -267,7 +267,7 @@ void CommandManager::execute(const String& command_line, if (it->type() == Token::Type::OptionExpand) { const Option& option = context.options()[it->content()]; - params.push_back(option.as_string()); + params.push_back(option.get_as_string()); } if (it->type() == Token::Type::CommandSeparator) { -- cgit v1.2.3