diff options
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; |