1
0
bash-completion/fix-curl-help-completion-bsc1200791.patch
Dr. Werner Fink 5c2f4ba192 Accepting request 991301 from home:ohollmann:branches:shells
- Add patch fix-curl-help-completion-bsc1200791.patch (bsc#1200791)
  * List all options for `curl --<TAB>`

OBS-URL: https://build.opensuse.org/request/show/991301
OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=128
2022-08-09 08:00:34 +00:00

18 lines
487 B
Diff

---
completions/curl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/completions/curl
+++ b/completions/curl
@@ -91,7 +91,9 @@ _curl()
esac
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" "--help all")' -- "$cur"))
+ [[ $COMPREPLY ]] ||
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
fi
} &&
complete -F _curl curl