Rev 3375 | Rev 3413 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3375 | Rev 3376 | ||
---|---|---|---|
Line 171... | Line 171... | ||
171 | unsigned int i, scope, ret = 0; |
171 | unsigned int i, scope, ret = 0; |
172 | int c, opt_ind; |
172 | int c, opt_ind; |
173 | size_t len; |
173 | size_t len; |
174 | char *buff = NULL; |
174 | char *buff = NULL; |
175 | 175 | ||
176 | for (argc = 0; argv[argc] != NULL; argc ++); |
176 | argc = cli_count_args(argv); |
- | 177 | ||
177 | if (argc < 2) { |
178 | if (argc < 2) { |
178 | cli_error(CL_EFAIL, |
179 | cli_error(CL_EFAIL, |
179 | "%s: insufficient arguments. Try %s --help", cmdname, cmdname); |
180 | "%s: insufficient arguments. Try %s --help", cmdname, cmdname); |
180 | return CMD_FAILURE; |
181 | return CMD_FAILURE; |
181 | } |
182 | } |