summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-12-13 06:06:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-14 19:42:10 -0800
commit1637eabfd3e953a609cd5c82f58a7daa9d88b243 (patch)
treecc89fb22c072d845a7927e244952ebf36866da7b /cli/src/cli.c
parentb754e531b48113596fddcd7d0b433ebcbf016c27 (diff)
cli: remove duplication of cmd help
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2089 (Documentation bug in replace-brick options) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2089
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r--cli/src/cli.c12
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, ...)