imporve netdatacli help usage readability (#18403)
Ilya Mashchenko committed
Aug 24, 2024 at 20:32 UTC
178fbc60d1e59318b99b550a84629867f5529573
1 file changed
+14
-14
src/daemon/commands.c
+14
-14
@@ -108,31 +108,31 @@ static cmd_status_t cmd_help_execute(char *args, char **message)
108
109
*message = mallocz(MAX_COMMAND_LENGTH);
110
strncpyz(*message,
111
- "\nThe commands are (arguments are in brackets):\n"
111
+ "\nThe commands are:\n\n"
112
"help\n"
113
- " Show this help menu.\n"
113
+ " Show this help menu.\n\n"
114
"reload-health\n"
115
- " Reload health configuration.\n"
115
+ " Reload health configuration.\n\n"
116
"reload-labels\n"
117
- " Reload all labels.\n"
117
+ " Reload all labels.\n\n"
118
"save-database\n"
119
- " Save internal DB to disk for memory mode save.\n"
119
+ " Save internal DB to disk for memory mode save.\n\n"
120
"reopen-logs\n"
121
- " Close and reopen log files.\n"
121
+ " Close and reopen log files.\n\n"
122
"shutdown-agent\n"
123
- " Cleanup and exit the netdata agent.\n"
123
+ " Cleanup and exit the netdata agent.\n\n"
124
"fatal-agent\n"
125
- " Log the state and halt the netdata agent.\n"
125
+ " Log the state and halt the netdata agent.\n\n"
126
"reload-claiming-state\n"
127
- " Reload agent claiming state from disk.\n"
127
+ " Reload agent claiming state from disk.\n\n"
128
"ping\n"
129
- " Return with 'pong' if agent is alive.\n"
129
+ " Return with 'pong' if agent is alive.\n\n"
130
"aclk-state [json]\n"
131
- " Returns current state of ACLK and Cloud connection. (optionally in json).\n"
131
+ " Returns current state of ACLK and Cloud connection. (optionally in json).\n\n"
132
"dumpconfig\n"
133
- " Returns the current netdata.conf on stdout.\n"
134
- "remove-stale-node node_id|machine_guid|hostname|ALL_NODES\n"
135
- " Unregisters and removes a node from the cloud.\n"
133
+ " Returns the current netdata.conf on stdout.\n\n"
134
+ "remove-stale-node <node_id | machine_guid | hostname | ALL_NODES>\n"
135
+ " Unregisters and removes a node from the cloud.\n\n"
136
"version\n"
137
" Returns the netdata version.\n",
138
MAX_COMMAND_LENGTH - 1);