summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
Diffstat (limited to 'hack')
-rwxr-xr-xhack/podman-commands.sh6
-rwxr-xr-xhack/xref-helpmsgs-manpages3
2 files changed, 9 insertions, 0 deletions
diff --git a/hack/podman-commands.sh b/hack/podman-commands.sh
index fd4ff2501..0455287d4 100755
--- a/hack/podman-commands.sh
+++ b/hack/podman-commands.sh
@@ -25,6 +25,12 @@ function podman_commands() {
$PODMAN help "$@" |\
awk '/^Available Commands:/{ok=1;next}/^Options:/{ok=0}ok { print $1 }' |\
grep .
+
+ # Special case: podman-completion is a hidden command
+ # it does not show in podman help so add it here
+ if [[ -z "$@" ]]; then
+ echo "completion"
+ fi
}
# Read a list of subcommands from a command's metadoc
diff --git a/hack/xref-helpmsgs-manpages b/hack/xref-helpmsgs-manpages
index c5447c5d6..55c8b6582 100755
--- a/hack/xref-helpmsgs-manpages
+++ b/hack/xref-helpmsgs-manpages
@@ -181,6 +181,9 @@ sub xref_by_man {
next if $k eq 'varlink';
next if "@subcommand" eq 'system' && $k eq 'service';
+ # Special case: podman completion is a hidden command
+ next if $k eq 'completion';
+
warn "$ME: podman @subcommand: $k in $man, but not --help\n";
++$Errs;
}