bash-completion.sh
branchv_0
changeset 7 ff69af3c67a3
parent 5 accf73de6778
child 8 8730e2d0db0e
--- a/bash-completion.sh	Wed Oct 30 16:47:42 2019 +0100
+++ b/bash-completion.sh	Thu Jan 02 23:31:44 2020 +0100
@@ -28,6 +28,11 @@
 		"boolean"
 	)
 
+	XINCLUDE=(
+		"true"
+		"false"
+	)
+
 	# FIXME: user must type " and then press TAB otherwise the completion is broken due to the : colon
 	#
 	# can be fixed by global modification of environment variable:
@@ -54,6 +59,7 @@
 	elif [[ "$w3" == "--attribute"     && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w1" == "--namespace"     && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w2" == "--namespace"                      ]];    then COMPREPLY=($(compgen -W "${XMLNS[*]}" -- "$w0"))
+	elif [[ "$w1" == "--xinclude"                       ]];    then COMPREPLY=($(compgen -W "${XINCLUDE[*]}" -- "$w0"))
 	else
 		OPTIONS=(
 			"--namespace"
@@ -61,6 +67,7 @@
 			"--records"
 			"--name-is-xpath"
 			"--attribute"
+			"--xinclude"
 		)
 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
 	fi