Fix completion for -e, --local-echo

This commit is contained in:
Martin Lund 2022-06-17 10:19:21 +02:00
parent 858b898bbb
commit a826bf4fcb

View file

@ -17,6 +17,7 @@ _tio()
-p --parity \ -p --parity \
-o --output-delay \ -o --output-delay \
-n --no-autoconnect \ -n --no-autoconnect \
-e --local-echo \
-l --log \ -l --log \
--log-file \ --log-file \
--log-strip \ --log-strip \
@ -41,10 +42,6 @@ _tio()
COMPREPLY=( $(compgen -W "5 6 7 8" -- ${cur}) ) COMPREPLY=( $(compgen -W "5 6 7 8" -- ${cur}) )
return 0 return 0
;; ;;
-h | --local-echo)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-f | --flow) -f | --flow)
COMPREPLY=( $(compgen -W "hard soft none" -- ${cur}) ) COMPREPLY=( $(compgen -W "hard soft none" -- ${cur}) )
return 0 return 0
@ -65,6 +62,10 @@ _tio()
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0
;; ;;
-e | --local-echo)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-l | --log) -l | --log)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0