aboutsummaryrefslogtreecommitdiff
path: root/hack/xref-helpmsgs-manpages
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-19 10:43:13 +0100
committerGitHub <noreply@github.com>2021-11-19 10:43:13 +0100
commitc603318b43187bd5e1642246d84da2bcd5c68aae (patch)
tree09c2ef317c10675ee038f9489a77c9def547459c /hack/xref-helpmsgs-manpages
parent63196c26a96652a824ff2d3fe68ac467060a0001 (diff)
parent22ef7b6208fbe958594577bbec37ddca4f1dff82 (diff)
downloadpodman-c603318b43187bd5e1642246d84da2bcd5c68aae.tar.gz
podman-c603318b43187bd5e1642246d84da2bcd5c68aae.tar.bz2
podman-c603318b43187bd5e1642246d84da2bcd5c68aae.zip
Merge pull request #12356 from Luap99/pod-logs
fix duplicated logs command
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
}