Skip to content

Commit

Permalink
Merge pull request #6 from mundry/suppress-stderr
Browse files Browse the repository at this point in the history
Suppress stderr on subcommand completion
  • Loading branch information
bramus authored Sep 26, 2019
2 parents b35ede3 + d7a2e5c commit f106aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer-autocomplete
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function _composer_scripts() {
# Complete the arguments to some of the commands.
#
if [ "$subcmd" != "${COMP_WORDS[0]}" ] ; then
local opts=$("$cmd" "$subcmd" -h --no-ansi | tr -cs '[=-=][:alpha:]_' '[\n*]' | grep '^-')
local opts=$("$cmd" "$subcmd" -h --no-ansi 2> /dev/null | tr -cs '[=-=][:alpha:]_' '[\n*]' | grep '^-')
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
Expand Down

0 comments on commit f106aeb

Please # to comment.