summaryrefslogtreecommitdiff
path: root/hack/podman-commands.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hack/podman-commands.sh')
-rwxr-xr-xhack/podman-commands.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/hack/podman-commands.sh b/hack/podman-commands.sh
index 587cac782..0455287d4 100755
--- a/hack/podman-commands.sh
+++ b/hack/podman-commands.sh
@@ -23,8 +23,14 @@ function die() {
# the command name but not its description.
function podman_commands() {
$PODMAN help "$@" |\
- awk '/^Available Commands:/{ok=1;next}/^Flags:/{ok=0}ok { print $1 }' |\
+ 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