Ævar Arnfjörð Bjarmason [off-list ref] writes:
Add more sanity checking to "git help" usage by erroring out if these
man viewer options are combined with incompatible command-modes that
will never use these documentation viewers.
This continues the work started in d35d03cf93e (help: simplify by
moving to OPT_CMDMODE(), 2021-09-22) of adding more sanity checking to
"git help". Doing this allows us to clarify the "SYNOPSIS" in the
documentation, and the "git help -h" output.
While this is not wrong per-se, "git help --all --web" in the
future that pops the same information up in your running browser
would not be a bad thing to have.
That use of --web is certainly not in line with --man and --info,
though (at that point we'd be saying "show in browser or show in
terminal").
So I guess this is OK at least for now.