diff --git a/cli/lightning-cli.c b/cli/lightning-cli.c index 63ef94c5b..10f8fffc2 100644 --- a/cli/lightning-cli.c +++ b/cli/lightning-cli.c @@ -197,8 +197,8 @@ static void human_help(char *buffer, const jsmntok_t *result) for (i = 0; i < tal_count(help); i++) { const jsmntok_t *command; command = json_get_member(buffer, help[i], "command"); - printf("%.*s\n\n", - command->end - command->start, buffer + command->start); + human_readable(buffer, command, '\n'); + printf("\n"); } tal_free(help);