if [[ ${#COMP_WORDS[*]} == 4 ]] then if [[ ${COMP_WORDS[1]} == "flag" ]] then opts="lock new multi-version" fi fi