Browse Source

jsonrpc: verbose help for help command.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
1ee44bdb47
  1. 9
      lightningd/jsonrpc.c

9
lightningd/jsonrpc.c

@ -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…
Cancel
Save