mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
jsonrpc: verbose help for help command.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
27678dfe6a
commit
1ee44bdb47
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue