Merge pull request #111 from henrikbrixandersen/bash_completion_timestamp

Add -t/--timestamp to bash completion script.
This commit is contained in:
Martin Lund 2021-01-18 01:18:48 +01:00 committed by GitHub
commit 76c04f5015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ _tio()
-l --log \ -l --log \
-m --map \ -m --map \
-v --version \ -v --version \
-t --timestamp \
-h --help" -h --help"
# Complete the arguments to the options. # Complete the arguments to the options.
@ -65,6 +66,10 @@ _tio()
COMPREPLY=( $(compgen -W "ICRNL IGNCR INLCR INLCRNL OCRNL ODELBS ONLCRNL" -- ${cur}) ) COMPREPLY=( $(compgen -W "ICRNL IGNCR INLCR INLCRNL OCRNL ODELBS ONLCRNL" -- ${cur}) )
return 0 return 0
;; ;;
-t | --timestamp)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-v | --version) -v | --version)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0