Skip to content

Commit

Permalink
fix(_comp_deprecate_func): argument order in usage error message
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jan 14, 2024
1 parent 2b7fc19 commit 597f62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ shopt -s extglob progcomp
_comp_deprecate_func()
{
if (($# != 3)); then
printf 'bash_completion: %s: usage: %s OLD_NAME NEW_NAME DEPRECATION_VERSION\n' "$FUNCNAME" "$FUNCNAME"
printf 'bash_completion: %s: usage: %s DEPRECATION_VERSION OLD_NAME NEW_NAME\n' "$FUNCNAME" "$FUNCNAME"
return 2
fi
if [[ $2 != [a-zA-Z_]*([a-zA-Z_0-9]) ]]; then
Expand Down

0 comments on commit 597f62f

Please sign in to comment.