summaryrefslogtreecommitdiff
path: root/hack/xref-helpmsgs-manpages
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-18 22:20:32 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-18 22:57:32 +0100
commit22ef7b6208fbe958594577bbec37ddca4f1dff82 (patch)
tree4b68b81729a46edb575f40ad600002c90d6cd8ab /hack/xref-helpmsgs-manpages
parent0376e6092c850435b4740876045fdccb467cafd8 (diff)
downloadpodman-22ef7b6208fbe958594577bbec37ddca4f1dff82.tar.gz
podman-22ef7b6208fbe958594577bbec37ddca4f1dff82.tar.bz2
podman-22ef7b6208fbe958594577bbec37ddca4f1dff82.zip
fix duplicated logs command
Podman logs was defined twice, once for container logs and once for pod logs. This causes problems with the shell completion. Also podman --help showed this command twice. [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'hack/xref-helpmsgs-manpages')
-rwxr-xr-xhack/xref-helpmsgs-manpages7
1 files changed, 7 insertions, 0 deletions
diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages
index 6a2d627bb..a447f4da1 100755
--- a/hack/xref-helpmsgs-manpages
+++ b/hack/xref-helpmsgs-manpages
@@ -242,6 +242,13 @@ sub podman_help {
if ($line =~ /^\s{1,4}(\S+)\s/) {
my $subcommand = $1;
print "> podman @_ $subcommand\n" if $debug;
+
+ # check that the same subcommand is not listed twice (#12356)
+ if (exists $help{$subcommand}) {
+ warn "$ME: 'podman @_ help' lists '$subcommand' twice\n";
+ ++$Errs;
+ }
+
$help{$subcommand} = podman_help(@_, $subcommand)
unless $subcommand eq 'help'; # 'help' not in man
}