diff options
| author | Pranith K <pranithk@gluster.com> | 2010-12-13 06:06:20 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-12-14 19:42:10 -0800 | 
| commit | 1637eabfd3e953a609cd5c82f58a7daa9d88b243 (patch) | |
| tree | cc89fb22c072d845a7927e244952ebf36866da7b /cli/src/registry.c | |
| parent | b754e531b48113596fddcd7d0b433ebcbf016c27 (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/registry.c')
| -rw-r--r-- | cli/src/registry.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/src/registry.c b/cli/src/registry.c index c3634d974de..166a148976f 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;  | 
