
_test_payload2_esad(){
	local OPTS='--help -h --device -d --vid --pid --baudrate -b --device-id'
	COMPREPLY=()
	local prev="${COMP_WORDS[COMP_CWORD-1]}"
	case "$prev" in
		-d|--device)
			COMPREPLY=( $(compgen -f -- "${COMP_WORDS[COMP_CWORD]}") )
			return 0
			;;
		--vid|--pid|-b|--baudrate|--device-id)
			return 0
			;;
	esac
	COMPREPLY=( $(compgen -W "${OPTS}" -- "${COMP_WORDS[COMP_CWORD]}") )
}

complete -F _test_payload2_esad test_payload2_esad
