-c --color \
-S --socket \
-x --hexadecimal \
+ -r --response-wait \
+ --response-timeout \
+ --rs-485 \
+ --rs-485-config \
+ --alert \
-v --version \
-h --help"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
+ -r | --response-wait)
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ --response-timeout)
+ COMPREPLY=( $(compgen -W "1 10 100" -- ${cur}) )
+ return 0
+ ;;
+ --rs-485)
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ --rs-485-config)
+ COMPREPLY=( $(compgen -W "RTS_ON_SEND RTS_AFTER_SEND RTS_DELAY_BEFORE_SEND RTS_DELAY_AFTER_SEND RX_DURING_TX" -- ${cur}) )
+ return 0
+ ;;
+ --alert)
+ COMPREPLY=( $(compgen -W "none bell blink" -- ${cur}) )
+ return 0
+ ;;
-v | --version)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0