bash-completion.sh
branchv_0
changeset 3 b71fc3b5e56b
parent 2 1eef3d465863
child 8 04550f271623
--- a/bash-completion.sh	Tue Mar 01 00:49:46 2022 +0100
+++ b/bash-completion.sh	Fri Mar 04 19:43:16 2022 +0100
@@ -28,18 +28,19 @@
 		"boolean"
 	)
 
-	READ_TYPES=(
-		"auto"
+	BOOLEAN_VALUES=(
 		"true"
 		"false"
 	)
 
 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
+	elif [[ "$w1" == "--unlink-on-close"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
 	elif [[ "$w1" == "--queue"                         && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w1" == "--message-count"                 && "x$w0" == "x" ]];    then COMPREPLY=("1")
 	else
 		OPTIONS=(
 			"--relation"
+			"--unlink-on-close"
 			"--queue"
 			"--message-count"
 		)