Lines Matching refs:usagestr
516 const char * const usagestr[]) in parse_options_step() argument
537 return usage_with_options_internal(usagestr, options, 0, ctx); in parse_options_step()
541 return parse_options_usage(usagestr, options, arg, 1); in parse_options_step()
553 return usage_with_options_internal(usagestr, options, 0, ctx); in parse_options_step()
557 return parse_options_usage(usagestr, options, arg, 1); in parse_options_step()
586 return usage_with_options_internal(usagestr, options, 1, ctx); in parse_options_step()
588 return usage_with_options_internal(usagestr, options, 0, ctx); in parse_options_step()
595 return parse_options_usage(usagestr, options, arg, 0); in parse_options_step()
614 parse_options_usage(usagestr, options, arg, excl_short_opt); in parse_options_step()
633 const char *const subcommands[], const char *usagestr[], int flags) in parse_options_subcommand() argument
638 if (subcommands && !usagestr[0]) { in parse_options_subcommand()
650 usagestr[0] = buf; in parse_options_subcommand()
654 switch (parse_options_step(&ctx, options, usagestr)) { in parse_options_subcommand()
680 usage_with_options(usagestr, options); in parse_options_subcommand()
687 const char * const usagestr[], int flags) in parse_options() argument
690 (const char **) usagestr, flags); in parse_options()
869 static int usage_with_options_internal(const char * const *usagestr, in usage_with_options_internal() argument
875 if (!usagestr) in usage_with_options_internal()
885 fprintf(stderr, "\n Usage: %s\n", *usagestr++); in usage_with_options_internal()
886 while (*usagestr && **usagestr) in usage_with_options_internal()
887 fprintf(stderr, " or: %s\n", *usagestr++); in usage_with_options_internal()
888 while (*usagestr) { in usage_with_options_internal()
890 **usagestr ? " " : "", in usage_with_options_internal()
891 *usagestr); in usage_with_options_internal()
892 usagestr++; in usage_with_options_internal()
915 void usage_with_options(const char * const *usagestr, in usage_with_options() argument
918 usage_with_options_internal(usagestr, opts, 0, NULL); in usage_with_options()
922 void usage_with_options_msg(const char * const *usagestr, in usage_with_options_msg() argument
935 usage_with_options_internal(usagestr, opts, 0, NULL); in usage_with_options_msg()
939 int parse_options_usage(const char * const *usagestr, in parse_options_usage() argument
943 if (!usagestr) in parse_options_usage()
946 fprintf(stderr, "\n Usage: %s\n", *usagestr++); in parse_options_usage()
947 while (*usagestr && **usagestr) in parse_options_usage()
948 fprintf(stderr, " or: %s\n", *usagestr++); in parse_options_usage()
949 while (*usagestr) { in parse_options_usage()
951 **usagestr ? " " : "", in parse_options_usage()
952 *usagestr); in parse_options_usage()
953 usagestr++; in parse_options_usage()