jsonrpc: verbose help for help command.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-01-29 11:00:15 +10:30 committed by Christian Decker
parent 27678dfe6a
commit 1ee44bdb47

View file

@ -51,7 +51,14 @@ static void json_help(struct command *cmd,
static const struct json_command help_command = {
"help",
json_help,
"Show available commands"
"List available commands, or give verbose help on one command.",
.verbose = "help [command]\n"
"Without [command]:\n"
" Outputs an array of objects with 'command' and 'description'\n"
"With [command]:\n"
" Give a single object containing 'verbose', which completely describes\n"
" the command inputs and outputs."
};
AUTODATA(json_command, &help_command);