Skip to content

Commit a0d8c9e

Browse files
committed
refactor(openssl): prefix "-" to the generated items
1 parent 2157f1c commit a0d8c9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/openssl

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ _comp_cmd_openssl__compgen_digests()
3232
"$1" dgst -h 2>&1 |
3333
_comp_awk '/^-.*[ \t]to use the .* message digest algorithm/ { print $1 }'
3434
)"
35-
_comp_compgen -ac "${cur#-}" split -P "-" -- "$("$1" help 2>&1 |
35+
_comp_compgen_split -- "$("$1" help 2>&1 |
3636
command sed -ne '/^Message Digest commands/,/^[[:space:]]*$/p' |
37-
command sed -e 1d)"
37+
command sed -e '1d;s/^/-/')"
3838
}
3939

4040
_comp_cmd_openssl()

0 commit comments

Comments
 (0)