Lines Matching refs:long_name
25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); in opterror()
27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); in opterror()
43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); in optwarning()
45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); in optwarning()
88 p->excl_opt->long_name == NULL) { in get_value()
93 p->excl_opt->long_name); in get_value()
378 if (!options->long_name) in parse_long_opt()
381 rest = skip_prefix(arg, options->long_name); in parse_long_opt()
393 if (strstarts(options->long_name, "no-")) { in parse_long_opt()
400 rest = skip_prefix(arg, options->long_name + 3); in parse_long_opt()
406 if (strstarts(options->long_name + 3, arg)) { in parse_long_opt()
412 if (!strncmp(options->long_name, arg, arg_end - arg)) { in parse_long_opt()
439 rest = skip_prefix(arg + 3, options->long_name); in parse_long_opt()
441 if (!rest && strstarts(options->long_name, arg + 3)) in parse_long_opt()
460 ambiguous_option->long_name, in parse_long_opt()
462 abbrev_option->long_name); in parse_long_opt()
487 if (!options->long_name) in check_typos()
489 if (strstarts(options->long_name, arg)) { in check_typos()
616 ctx->excl_opt->long_name == NULL) { in parse_options_step()
620 parse_options_usage(NULL, options, ctx->excl_opt->long_name, 0); in parse_options_step()
661 if (options->long_name) in parse_options_subcommand()
662 printf("--%s ", options->long_name); in parse_options_subcommand()
718 if (opts->long_name && opts->short_name) in print_option_help()
720 if (opts->long_name) in print_option_help()
721 pos += fprintf(stderr, "--%s", opts->long_name); in print_option_help()
732 if (opts->long_name) in print_option_help()
746 if (opts->long_name) in print_option_help()
754 if (opts->long_name) in print_option_help()
799 const char *la = a->long_name ?: "", in option__cmp()
800 *lb = b->long_name ?: ""; in option__cmp()
864 if (opt->long_name && strcmp(opt->long_name, arg) == 0) in option__in_argv()
874 (arg[1] == '-' && opt->long_name && strcmp(opt->long_name, arg + 2) == 0)) in option__in_argv()
979 if (opts->long_name == NULL) in parse_options_usage()
982 if (strstarts(opts->long_name, optstr)) in parse_options_usage()
985 strstarts(opts->long_name, optstr + 3)) in parse_options_usage()
1021 (opts->long_name && longopt && in find_option()
1022 !strcmp(opts->long_name, longopt))) in find_option()