From 1637eabfd3e953a609cd5c82f58a7daa9d88b243 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Mon, 13 Dec 2010 06:06:20 +0000 Subject: cli: remove duplication of cmd help Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2089 (Documentation bug in replace-brick options) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2089 --- cli/src/cli.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/src/cli.c') diff --git a/cli/src/cli.c b/cli/src/cli.c index bb89566e6..a2e4d71bc 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, ...) -- cgit