forked from pool/bash-completion
- 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
18 lines
487 B
Diff
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
|