disabled in square brackets

This commit is contained in:
Roger Haxby 2020-12-08 23:44:51 +00:00
parent 49a9314325
commit 6009e52e74
3 changed files with 18 additions and 18 deletions

View file

@ -4,8 +4,8 @@ _pivpn()
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
dashopts="-a -c -d -l -qr -r -h -u -up -bk -dis -ena"
opts="add clients debug list qrcode remove help uninstall update backup disable enable"
dashopts="-a -c -d -l -qr -r -h -u -up -bk -off -on"
opts="add clients debug list qrcode remove help uninstall update backup (temp) off (temp) on"
if [ "${#COMP_WORDS[@]}" -eq 2 ]
then
if [[ ${cur} == -* ]] ; then