diff options
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index bb89566e693..a2e4d71bcba 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -451,6 +451,18 @@ cli_state_init (struct cli_state *state) return ret; } +int +cli_usage_out (const char *usage) +{ + GF_ASSERT (usage); + GF_ASSERT (usage[0] != '\0'); + + if (!usage || usage[0] == '\0') + return -1; + + cli_out ("Usage: %s", usage); + return 0; +} int cli_out (const char *fmt, ...) |