mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
jsonrpc: verbose help for help command.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
27678dfe6a
commit
1ee44bdb47
@@ -51,7 +51,14 @@ static void json_help(struct command *cmd,
|
|||||||
static const struct json_command help_command = {
|
static const struct json_command help_command = {
|
||||||
"help",
|
"help",
|
||||||
json_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);
|
AUTODATA(json_command, &help_command);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user