diff --git a/Userland/DevTools/UserspaceEmulator/main.cpp b/Userland/DevTools/UserspaceEmulator/main.cpp index e62239b71ae..c826cf13e01 100644 --- a/Userland/DevTools/UserspaceEmulator/main.cpp +++ b/Userland/DevTools/UserspaceEmulator/main.cpp @@ -19,27 +19,22 @@ bool g_report_to_debug = false; int main(int argc, char** argv, char** env) { - Vector command; + Vector arguments; Core::ArgsParser parser; parser.add_option(g_report_to_debug, "Write reports to the debug log", "report-to-debug", 0); - parser.add_positional_argument(command, "Command to emulate", "command"); + parser.add_positional_argument(arguments, "Command to emulate", "command"); parser.parse(argc, argv); - auto executable_path = Core::find_executable_in_path(command[0]); + auto executable_path = Core::find_executable_in_path(arguments[0]); if (executable_path.is_empty()) { - executable_path = Core::File::real_path_for(command[0]); + executable_path = Core::File::real_path_for(arguments[0]); if (executable_path.is_empty()) { reportln("Cannot find executable for '{}'.", executable_path); return 1; } } - Vector arguments; - for (auto arg : command) { - arguments.append(arg); - } - Vector environment; for (int i = 0; env[i]; ++i) { environment.append(env[i]);