From: Ævar Arnfjörð Bjarmason Date: Tue, 04 Oct 2022 13:20:45 GMT Subject: [PATCH v3 00/34] doc/UX: make txt & -h output more consistent Message-ID: In-Reply-To: We are currently wildly inconsistent in whether the SYNOPSIS in the manual page matches the first line of the -h output, and as we add new options we routinely forget to add them to one or the other (or both). Without a more complex approach it's hard to do something about the "or both" case. But we can rather easily test whether the -h output matches the *.txt version, and report differences. As this series shows that allows us to fix a lot of issues we've effectively already "fixed", we just fixed them in one version, but not the other. For the rest of the general overview (the first paragraphs are copy/pasted) see the v1 at: https://lore.kernel.org/git/cover-00.34-00000000000-20220902T092734Z-avarab@gmail.com/ [1]; For v3 see: http://lore.kernel.org/git/cover-v3-00.36-00000000000-20220930T180414Z-avarab@gmail.com Changes since v3: * Added a commit to put a small portion of the the new tests first, we then add a bit to it as we go along. * Squashed some changes as requested, now some of the "doc txt & -h consistency" commits have changes that were previously split up, but that's noted in the commit message. * Ejected the "blame" usage_msg_optf() change, instead the relevant later commit just supports both usage() and usage_with_options(). * Consistently use [], not "[", not "..." doc SYNOPSIS & -h: use "-" to separate words in labels, not "_" doc txt & -h consistency: fix mismatching labels doc txt & -h consistency: add or fix optional "--" syntax doc txt & -h consistency: make output order consistent doc txt & -h consistency: add missing options and labels doc txt & -h consistency: make "rerere" consistent doc txt & -h consistency: make "read-tree" consistent doc txt & -h consistency: make "bundle" consistent doc txt & -h consistency: use "git foo" form, not "git-foo" doc txt & -h consistency: add missing options doc txt & -h consistency: make "stash" consistent doc txt & -h consistency: make "annotate" consistent doc txt & -h consistency: use "[