From 4f58790488181400b542559a8d24a5a341dd3538 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 18 Nov 2021 22:20:32 +0100 Subject: 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 --- hack/xref-helpmsgs-manpages | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hack') diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages index cc1e233b9..3e5a2de10 100755 --- a/hack/xref-helpmsgs-manpages +++ b/hack/xref-helpmsgs-manpages @@ -244,6 +244,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 } -- cgit v1.2.3-54-g00ecf