diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-08-13 21:52:03 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2022-08-19 11:15:56 +0200 |
commit | e886d662ec2580c9b19c44296d0bb64fbf635ecf (patch) | |
tree | 05a45b3a767d149df5ded788fcee7d826882de37 /editor/editor_node.cpp | |
parent | f2a61684143af02a8cbe7002645af817607f9bd6 (diff) |
Overhaul CLI argument forwarding to processes started by the editor
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index e7946f56da..211258d953 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1815,15 +1815,15 @@ void EditorNode::restart_editor() { List<String> args; + for (const String &a : Main::get_forwardable_cli_arguments(Main::CLI_SCOPE_TOOL)) { + args.push_back(a); + } + args.push_back("--path"); args.push_back(ProjectSettings::get_singleton()->get_resource_path()); args.push_back("-e"); - if (OS::get_singleton()->is_disable_crash_handler()) { - args.push_back("--disable-crash-handler"); - } - if (!to_reopen.is_empty()) { args.push_back(to_reopen); } @@ -3162,6 +3162,9 @@ void EditorNode::_discard_changes(const String &p_str) { String exec = OS::get_singleton()->get_executable_path(); List<String> args; + for (const String &a : Main::get_forwardable_cli_arguments(Main::CLI_SCOPE_TOOL)) { + args.push_back(a); + } args.push_back("--path"); args.push_back(exec.get_base_dir()); args.push_back("--project-manager"); |