From f50964d57607e38a4d0ce6d9dbb3b837264252e8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 13 Aug 2023 13:54:08 +0200 Subject: [PATCH] CLI option -d:param --- config.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.cpp b/config.cpp index effc3f31..d819889c 100644 --- a/config.cpp +++ b/config.cpp @@ -4056,6 +4056,20 @@ EX int read_config_args() { else if(argis("-d:find")) { PHASEFROM(2); launch_dialog(find_setting); } + else if(argis("-d:param")) { + PHASEFROM(2); + shift(); + string s = args(); + for(auto& fs: params) if(fs.first == s) { + dialog::items.clear(); + dialog::key_actions.clear(); + fs.second->show_edit_option(); + for(auto p: dialog::key_actions) { p.second(); return 0; } + println(hlog, "no key action"); + return 0; + } + println(hlog, "unknown param to edit: ", s); + } else if(argis("-char")) { auto& cs = vid.cs; shift();