| 594 | } |
| 595 | |
| 596 | static enum parse_opt_result parse_nodash_opt(struct parse_opt_ctx_t *p, |
| 597 | const char *arg, |
| 598 | const struct option *options) |
| 599 | { |
| 600 | for (; options->type != OPTION_END; options++) { |
| 601 | if (!(options->flags & PARSE_OPT_NODASH)) |
| 602 | continue; |
| 603 | if (options->short_name == arg[0] && arg[1] == '\0') |
| 604 | return get_value(p, options, OPT_SHORT); |
| 605 | } |
| 606 | return PARSE_OPT_ERROR; |
| 607 | } |
| 608 | |
| 609 | static enum parse_opt_result parse_subcommand(const char *arg, |
| 610 | const struct option *options) |
no test coverage detected