Commit 503cdda
help: error if [-a|-g|-c] and [-i|-m|-w] are combined
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 d35d03c (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.
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 5e8068b commit 503cdda
2 files changed
+45
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
578 | 604 | | |
579 | 605 | | |
580 | 606 | | |
581 | 607 | | |
582 | 608 | | |
| 609 | + | |
| 610 | + | |
583 | 611 | | |
584 | 612 | | |
585 | 613 | | |
| |||
594 | 622 | | |
595 | 623 | | |
596 | 624 | | |
597 | | - | |
| 625 | + | |
598 | 626 | | |
599 | 627 | | |
600 | 628 | | |
| |||
606 | 634 | | |
607 | 635 | | |
608 | 636 | | |
609 | | - | |
| 637 | + | |
610 | 638 | | |
611 | 639 | | |
612 | 640 | | |
613 | 641 | | |
614 | | - | |
| 642 | + | |
615 | 643 | | |
616 | 644 | | |
617 | 645 | | |
618 | | - | |
| 646 | + | |
| 647 | + | |
619 | 648 | | |
620 | 649 | | |
621 | 650 | | |
622 | | - | |
| 651 | + | |
623 | 652 | | |
624 | 653 | | |
625 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
52 | 62 | | |
53 | 63 | | |
54 | 64 | | |
| |||
0 commit comments