summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 54dea496c..342e840a8 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -120,7 +120,7 @@ static char *handle_load(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
return NULL;
case CLI_GENERATE:
- if (a->argc != e->args + 1)
+ if (a->pos != e->args)
return NULL;
return complete_fn(a->word, a->n);
}