diff --git a/mytoninstaller/mytoninstaller.py b/mytoninstaller/mytoninstaller.py index c820efc9..7fe0e20d 100644 --- a/mytoninstaller/mytoninstaller.py +++ b/mytoninstaller/mytoninstaller.py @@ -69,7 +69,7 @@ def inject_globals(func): console.AddItem("status", inject_globals(Status), "Print TON component status") console.AddItem("set_node_argument", inject_globals(set_node_argument), "Set node argument") console.AddItem("enable", inject_globals(Enable), "Enable some function") - console.AddItem("update", inject_globals(Enable), "Update some function: 'JR' - jsonrpc. Example: 'update JR'") + console.AddItem("update", inject_globals(Enable), "Update some function: 'JR' - jsonrpc. Example: 'update JR'") console.AddItem("plsc", inject_globals(PrintLiteServerConfig), "Print lite-server config") console.AddItem("clcf", inject_globals(CreateLocalConfigFile), "Create lite-server config file") console.AddItem("print_ls_proxy_config", inject_globals(print_ls_proxy_config), "Print ls-proxy config") @@ -132,6 +132,8 @@ def Status(local, args): node_args = get_node_args() color_print("{cyan}===[ Node arguments ]==={endc}") for key, value in node_args.items(): + if len(value) == 0: + print(f"{key}") for v in value: print(f"{key}: {v}") #end define diff --git a/mytoninstaller/node_args.py b/mytoninstaller/node_args.py index cd8c6e47..afedf60f 100644 --- a/mytoninstaller/node_args.py +++ b/mytoninstaller/node_args.py @@ -25,7 +25,8 @@ def get_node_args(start_command: str = None): for item in node_args: if item.startswith('-'): key = item - result[key] = list() + if key not in result: + result[key] = [] else: result[key].append(item) return result