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/registry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/src/registry.c') diff --git a/cli/src/registry.c b/cli/src/registry.c index c3634d974..166a14897 100644 --- a/cli/src/registry.c +++ b/cli/src/registry.c @@ -319,7 +319,7 @@ cli_cmd_newword (struct cli_cmd_word *word, const char *token) int cli_cmd_ingest (struct cli_cmd_tree *tree, char **tokens, cli_cmd_cbk_t *cbkfn, - const char *desc) + const char *desc, const char *pattern) { int ret = 0; char **tokenp = NULL; @@ -351,6 +351,7 @@ cli_cmd_ingest (struct cli_cmd_tree *tree, char **tokens, cli_cmd_cbk_t *cbkfn, word->cbkfn = cbkfn; word->desc = desc; + word->pattern = pattern; /* end of static strings in command template */ @@ -374,7 +375,7 @@ cli_cmd_register (struct cli_cmd_tree *tree, const char *template, if (!tokens) return -1; - ret = cli_cmd_ingest (tree, tokens, cbk, desc); + ret = cli_cmd_ingest (tree, tokens, cbk, desc, template); if (ret) goto err; -- cgit