We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcd3c6f + 1fa76ba commit 53069e2Copy full SHA for 53069e2
utils/swift-autocomplete.bash
@@ -161,8 +161,8 @@ _swift_complete()
161
if [[ ${prevWord} == "-Xfrontend" ]] || echo ${COMP_WORDS[@]} | grep --quiet -e '-frontend' ; then
162
frontendOption="-frontend"
163
fi
164
- options=`${tool} ${frontendOption} -help-hidden 2>/dev/null | grep '^ *-[a-zA-Z-]' | sed -E 's/^ *(-[a-zA-Z=-]+).*/\1/'`
165
- COMPREPLY=( $(compgen -W "${options}" -- ${currentWord}) )
+ toolOptions=`${tool} ${frontendOption} -help-hidden 2>/dev/null | grep '^ *-[a-zA-Z-]' | sed -E 's/^ *(-[a-zA-Z=-]+).*/\1/'`
+ COMPREPLY=( $(compgen -W "${toolOptions}" -- ${currentWord}) )
166
167
return 0
168
}
0 commit comments