| 624 | } |
| 625 | |
| 626 | static void no_help_format(const char *opt_mode, enum help_format fmt) |
| 627 | { |
| 628 | const char *opt_fmt; |
| 629 | |
| 630 | switch (fmt) { |
| 631 | case HELP_FORMAT_NONE: |
| 632 | return; |
| 633 | case HELP_FORMAT_MAN: |
| 634 | opt_fmt = "--man"; |
| 635 | break; |
| 636 | case HELP_FORMAT_INFO: |
| 637 | opt_fmt = "--info"; |
| 638 | break; |
| 639 | case HELP_FORMAT_WEB: |
| 640 | opt_fmt = "--web"; |
| 641 | break; |
| 642 | default: |
| 643 | BUG("unreachable"); |
| 644 | } |
| 645 | |
| 646 | usage_msg_optf(_("options '%s' and '%s' cannot be used together"), |
| 647 | builtin_help_usage, builtin_help_options, opt_mode, |
| 648 | opt_fmt); |
| 649 | } |
| 650 | |
| 651 | static void opt_mode_usage(int argc, const char *opt_mode, |
| 652 | enum help_format fmt) |
no test coverage detected