File fix-curl-help-completion-bsc1200791.patch of Package bash-completion.27138
---
completions/curl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/completions/curl
+++ b/completions/curl
@@ -87,7 +87,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