Lines Matching refs:argc
56 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 ||
59 } else if (p->argc > 1) {
60 p->argc--;
497 int argc, const char **argv, int flags)
500 ctx->argc = argc - 1;
525 for (; ctx->argc; ctx->argc--, ctx->argv++) {
578 ctx->argc--;
627 memmove(ctx->out + ctx->cpidx, ctx->argv, ctx->argc * sizeof(*ctx->out));
628 ctx->out[ctx->cpidx + ctx->argc] = NULL;
629 return ctx->cpidx + ctx->argc;
632 int parse_options_subcommand(int argc, const char **argv, const struct option *options,
653 parse_options_start(&ctx, argc, argv, flags);
686 int parse_options(int argc, const char **argv, const struct option *options,
689 return parse_options_subcommand(argc, argv, options, NULL,
842 for (i = 1; i < ctx->argc; ++i) {
903 if (ctx && ctx->argc > 1 && !option__in_argv(opts, ctx))