MCPcopy Create free account
hub / github.com/git/git / no_help_format

Function no_help_format

builtin/help.c:626–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static 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
651static void opt_mode_usage(int argc, const char *opt_mode,
652 enum help_format fmt)

Callers 1

opt_mode_usageFunction · 0.85

Calls 1

usage_msg_optfFunction · 0.85

Tested by

no test coverage detected