summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-03 17:25:40 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-05 18:49:26 +0100
commitfac222a4274da423acadb98173dc2023050b648f (patch)
tree24aa27455d23915821b8de9b41005a1a5ffdb9ab /src/command_manager.cc
parenta36befd6535d0334f91606f157afb3c1cbf80c3c (diff)
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
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc2
1 files changed, 1 insertions, 1 deletions
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)
{