| 17 | }; |
| 18 | |
| 19 | static void optbug(const struct option *opt, const char *reason) |
| 20 | { |
| 21 | if (opt->long_name && opt->short_name) |
| 22 | bug("switch '%c' (--%s) %s", opt->short_name, |
| 23 | opt->long_name, reason); |
| 24 | else if (opt->long_name) |
| 25 | bug("option '%s' %s", opt->long_name, reason); |
| 26 | else |
| 27 | bug("switch '%c' %s", opt->short_name, reason); |
| 28 | } |
| 29 | |
| 30 | static const char *optname(const struct option *opt, enum opt_parsed flags) |
| 31 | { |
no outgoing calls
no test coverage detected