summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/zsh/_podman1
1 files changed, 1 insertions, 0 deletions
diff --git a/completions/zsh/_podman b/completions/zsh/_podman
index 228498066..06aa92748 100644
--- a/completions/zsh/_podman
+++ b/completions/zsh/_podman
@@ -47,6 +47,7 @@ _read_podman_flags() {
# The result will be, e.g. '-f,--foo=string Description of Option'
_call_program podman podman "$@" --help |\
sed -n -e '0,/^Flags:/d' -e '/^$/q;p' |\
+ grep '^ \+-' |\
sed -e 's/^ *//' -e 's/^\(-.,\) --/\1--/' |\
sed -e 's/^\(-[^ ]\+\) \([^ ]\+\) /\1=\2 /' |\
while read flags desc;do