diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-03-03 17:25:40 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-03-05 18:49:26 +0100 |
| commit | fac222a4274da423acadb98173dc2023050b648f (patch) | |
| tree | 24aa27455d23915821b8de9b41005a1a5ffdb9ab /src/shell_manager.cc | |
| parent | a36befd6535d0334f91606f157afb3c1cbf80c3c (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/shell_manager.cc')
| -rw-r--r-- | src/shell_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 31a9d4c2..31ff0b1b 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -119,7 +119,7 @@ String ShellManager::pipe(const String& input, ++it; } - String shell = context.options()["shell"].as_string(); + String shell = context.options()["shell"].get<String>(); std::vector<const char*> execparams = { shell.c_str(), "-c", cmdline.c_str() }; if (not params.empty()) execparams.push_back(shell.c_str()); |
