Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mytoninstaller/mytoninstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion mytoninstaller/node_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down