diff options
-rw-r--r-- | test/cli.c | 6 | ||||
-rw-r--r-- | test/cli.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -742,6 +742,12 @@ void cli_help(const struct cli_table *cli, const char *prog_name) cli__count(cli, &count, &pcount, &max_len, &pmax_len, &phas_desc); + if (cli->d != NULL) { + fprintf(stderr, "\n"); + cli__print_wrapping_string(cli->d, 0); + fprintf(stderr, "\n"); + } + fprintf(stderr, "\nUsage: %s", prog_name); if (pcount > 0) { @@ -73,6 +73,7 @@ struct cli_table { const struct cli_table_entry *entries; size_t count; size_t min_positional; + const char *d; /**< Description of this application for help output. */ }; /** |