Lines Matching refs:usagestr
321 const char * const usagestr[])
341 return parse_options_usage(usagestr, options);
344 return parse_options_usage(usagestr, options);
354 return parse_options_usage(usagestr, options);
357 return parse_options_usage(usagestr, options);
383 return usage_with_options_internal(usagestr, options, 1);
385 return parse_options_usage(usagestr, options);
388 return parse_options_usage(usagestr, options);
412 const char * const usagestr[], int flags)
417 switch (parse_options_step(&ctx, options, usagestr)) {
428 usage_with_options(usagestr, options);
437 int usage_with_options_internal(const char * const *usagestr,
440 if (!usagestr)
443 fprintf(stderr, "\n usage: %s\n", *usagestr++);
444 while (*usagestr && **usagestr)
445 fprintf(stderr, " or: %s\n", *usagestr++);
446 while (*usagestr) {
448 **usagestr ? " " : "",
449 *usagestr);
450 usagestr++;
542 void usage_with_options(const char * const *usagestr,
546 usage_with_options_internal(usagestr, opts, 0);
550 int parse_options_usage(const char * const *usagestr,
553 return usage_with_options_internal(usagestr, opts, 0);