Lines Matching refs:option
8 static int opterror(const struct option *opt, const char *reason, int flags)
13 return error("option `no-%s' %s", opt->long_name, reason);
14 return error("option `%s' %s", opt->long_name, reason);
17 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt,
35 const struct option *opt, int flags)
186 static int parse_short_opt(struct parse_opt_ctx_t *p, const struct option *options)
198 const struct option *options)
201 const struct option *abbrev_option = NULL, *ambiguous_option = NULL;
270 return error("Ambiguous option: %s "
282 static void check_typos(const char *arg, const struct option *options)
317 const struct option *, int);
320 const struct option *options,
325 /* we must reset ->opt, unknown short option leave it dangling */
359 /* fake a short option thing to hide the fact that we may have
411 int parse_options(int argc, const char **argv, const struct option *options,
424 error("unknown option `%s'", ctx.argv[0] + 2);
438 const struct option *opts, int full)
543 const struct option *opts)
551 const struct option *opts)
557 int parse_opt_verbosity_cb(const struct option *opt, const char *arg __used,