summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-system.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-cmd-system.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-cmd-system.c')
-rw-r--r--cli/src/cli-cmd-system.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/cli/src/cli-cmd-system.c b/cli/src/cli-cmd-system.c
index 0c1b6d267c5..e92376cef8a 100644
--- a/cli/src/cli-cmd-system.c
+++ b/cli/src/cli-cmd-system.c
@@ -129,14 +129,8 @@ out:
return ret;
}
-void
-cli_cmd_fsm_log_usage ()
-{
- cli_out ("Usage: fsm log [<peer-name>]");
-}
-
int
-cli_cmd_fsm_log (struct cli_state *state, struct cli_cmd_word *in_word,
+cli_cmd_fsm_log (struct cli_state *state, struct cli_cmd_word *word,
const char **words, int wordcount)
{
int ret = -1;
@@ -145,7 +139,7 @@ cli_cmd_fsm_log (struct cli_state *state, struct cli_cmd_word *in_word,
char *name = "";
if ((wordcount != 3) && (wordcount != 2)) {
- cli_cmd_fsm_log_usage ();
+ cli_usage_out (word->pattern);
goto out;
}