diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-11-18 22:20:32 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-06 15:12:49 -0500 |
commit | 4f58790488181400b542559a8d24a5a341dd3538 (patch) | |
tree | 4a84ab950cdcc834225b0a722dc4a2d2b1542f90 /hack | |
parent | 2c7b673c5c22d7b1d153768891983221fc6e0312 (diff) | |
download | podman-4f58790488181400b542559a8d24a5a341dd3538.tar.gz podman-4f58790488181400b542559a8d24a5a341dd3538.tar.bz2 podman-4f58790488181400b542559a8d24a5a341dd3538.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')
-rwxr-xr-x | hack/xref-helpmsgs-manpages | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |