summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index dce8c57e0..abd30f713 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1056,6 +1056,23 @@ impHandler1(open)
openBrowser(url);
}
+impHandler1(execute)
+{
+ const size_t idx = args.find(" ");
+ std::string name;
+ std::string params;
+ if (idx == std::string::npos)
+ {
+ name = args;
+ }
+ else
+ {
+ name = args.substr(0, idx);
+ params = args.substr(idx + 1);
+ }
+ execFile(name, name, params, "");
+}
+
#ifdef DEBUG_DUMP_LEAKS1
void showRes(std::string str, ResourceManager::Resources *res);