podman/hack
Ed Santiago c6090c290e Docs: consistency between man / --help
New functionality in hack/man-page-checker: start cross-
referencing the man page 'Synopsis' line against the
output of 'podman foo --help'. This is part 1, flag/option
consistency. Part 2 (arg consistency) is too big and will
have to wait for later.

flag/option consistency means: if 'podman foo --help'
includes the string '[flags]' in the Usage message,
make sure the man page includes '[*options*]' in its
Synopsis line, and vice-versa. This found several
inconsistencies, which I've fixed.

While doing this I realized that Cobra automatically
includes a 'Flags:' subsection in its --help output
for all subcommands that have defined flags. This
is great - it lets us cross-check against the
usage synopsis, and make sure that '[flags]' is
present or absent as needed, without fear of
human screwups. If a flag-less subcommand ever
gets extended with flags, but the developer forgets
to add '[flags]' and remove DisableFlagsInUseLine,
we now have a test that will catch that. (This,
too, caught two instances which I fixed).

I don't actually know if the new man-page-checker
functionality will work in CI: I vaguely recall that
it might run before 'make podman' does; and also
vaguely recall that some steps were taken to remedy
that.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-06-24 10:39:10 -06:00
..
podman-registry-go add go-bindings for hack/podman-registry 2020-05-20 15:12:35 +02:00
apparmor_tag.sh AppArmor: runtime check if it's enabled on the host 2018-07-23 18:11:09 +00:00
btrfs_installed_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
btrfs_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
get_ci_vm.sh Cirrus: Fix image-name hints 2020-05-14 15:00:34 -04:00
get_release_info.sh Cirrus: Fix gate image & false-positive exits 2020-03-02 08:50:54 -05:00
golangci-lint.sh Remove use of ABISupport buildtag 2020-06-03 15:11:34 -04:00
install_bats.sh force bats version to v1.1.0 2020-06-08 15:21:34 +02:00
install_catatonit.sh catatonit: clone and build 2019-09-25 11:05:41 +02:00
install_golangci.sh Cirrus: Fix gate image & false-positive exits 2020-03-02 08:50:54 -05:00
libdm_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
man-page-checker Docs: consistency between man / --help 2020-06-24 10:39:10 -06:00
podman-commands.sh auto updates 2020-03-17 17:18:56 +01:00
podman-registry CI: force registry:2.6 2020-06-19 12:58:02 +02:00
podmanv2-retry podmanv2-retry - new helper for testing v2 2020-04-01 14:14:00 -06:00
release.sh Fix a syntax error in hack/release.sh 2020-01-31 10:55:17 -05:00
selinux_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
swagger-check swagger-check: new CI tool to cross-check swagger 2020-04-14 11:27:44 -06:00
systemd_tag.sh Use systemd/sd-daemon.h headers for systemd presence 2019-12-16 20:37:15 +05:30
tree_status.sh Cirrus: Add check for make varlink_api_generate 2019-05-03 15:04:48 -04:00
xref-helpmsgs-manpages Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00