Skip to content

Commit e88a216

Browse files
algorythmicakinomyoga
authored andcommitted
fix(curl): fix option listing in newer versions
_parse_help only takes a single parameter (which is then splits) for the options that it invokes the tool with.
1 parent 3e18b30 commit e88a216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/curl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ _comp_cmd_curl()
159159
esac
160160

161161
if [[ $cur == -* ]]; then
162-
COMPREPLY=($(compgen -W '$(_parse_help "$1" --help all)' -- "$cur"))
162+
COMPREPLY=($(compgen -W '$(_parse_help "$1" "--help all")' -- "$cur"))
163163
[[ ${COMPREPLY-} ]] ||
164164
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
165165
fi

0 commit comments

Comments
 (0)