Lines Matching refs:usagestr
322 const char * const usagestr[]) in parse_options_step() argument
342 return parse_options_usage(usagestr, options); in parse_options_step()
345 return parse_options_usage(usagestr, options); in parse_options_step()
355 return parse_options_usage(usagestr, options); in parse_options_step()
358 return parse_options_usage(usagestr, options); in parse_options_step()
384 return usage_with_options_internal(usagestr, options, 1); in parse_options_step()
386 return parse_options_usage(usagestr, options); in parse_options_step()
391 return parse_options_usage(usagestr, options); in parse_options_step()
415 const char * const usagestr[], int flags) in parse_options() argument
422 switch (parse_options_step(&ctx, options, usagestr)) { in parse_options()
439 usage_with_options(usagestr, options); in parse_options()
448 int usage_with_options_internal(const char * const *usagestr, in usage_with_options_internal() argument
451 if (!usagestr) in usage_with_options_internal()
454 fprintf(stderr, "\n usage: %s\n", *usagestr++); in usage_with_options_internal()
455 while (*usagestr && **usagestr) in usage_with_options_internal()
456 fprintf(stderr, " or: %s\n", *usagestr++); in usage_with_options_internal()
457 while (*usagestr) { in usage_with_options_internal()
459 **usagestr ? " " : "", in usage_with_options_internal()
460 *usagestr); in usage_with_options_internal()
461 usagestr++; in usage_with_options_internal()
553 void usage_with_options(const char * const *usagestr, in usage_with_options() argument
557 usage_with_options_internal(usagestr, opts, 0); in usage_with_options()
561 int parse_options_usage(const char * const *usagestr, in parse_options_usage() argument
564 return usage_with_options_internal(usagestr, opts, 0); in parse_options_usage()