Skip to content

Commit 3c4a89c

Browse files
committed
fix(_comp_split): update error message for the correct options
1 parent e72cc82 commit 3c4a89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ _comp_split()
372372
shift "$((OPTIND - 1))"
373373
if (($# != 2)); then
374374
printf '%s\n' "bash_completion: $FUNCNAME: unexpected number of arguments" >&2
375-
printf '%s\n' "usage: $FUNCNAME [-a] [-F SEP] ARRAY_NAME TEXT" >&2
375+
printf '%s\n' "usage: $FUNCNAME [-al] [-F SEP] ARRAY_NAME TEXT" >&2
376376
return 2
377377
elif [[ $1 == @(*[^_a-zA-Z0-9]*|[0-9]*|''|_*|IFS|OPTIND|OPTARG|OPTERR) ]]; then
378378
printf '%s\n' "bash_completion: $FUNCNAME: invalid array name '$1'" >&2

0 commit comments

Comments
 (0)