help: listnodes and listchannels,have optional arg

This commit is contained in:
Isidoro Ghezzi 2018-03-10 19:54:19 +01:00 committed by Christian Decker
parent 249464ccd2
commit f24a7b9356

View File

@ -267,7 +267,7 @@ static void json_listnodes(struct command *cmd, const char *buffer,
static const struct json_command listnodes_command = {
"listnodes",
json_listnodes,
"Show all nodes in our local network view"
"Show node {id} (or all, if no {id}), in our local network view"
};
AUTODATA(json_command, &listnodes_command);
@ -475,6 +475,6 @@ static void json_listchannels(struct command *cmd, const char *buffer,
static const struct json_command listchannels_command = {
"listchannels",
json_listchannels,
"Show all known channels"
"Show channel {short_channel_id} (or all known channels, if no {short_channel_id})"
};
AUTODATA(json_command, &listchannels_command);