diff -r ee72fccc5267 -r 0e8a58946c48 bash-completion.sh --- a/bash-completion.sh Wed Nov 25 17:28:17 2020 +0100 +++ b/bash-completion.sh Sat Nov 28 23:52:01 2020 +0100 @@ -28,7 +28,7 @@ "boolean" ) - XINCLUDE=( + BOOLEAN_VALUES=( "true" "false" ) @@ -67,7 +67,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")) + elif [[ "$w1" == "--xinclude" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0")) elif [[ "$w1" == "--mode" ]]; then COMPREPLY=($(compgen -W "${MODE[*]}" -- "$w0")) elif [[ "$w1" == "--raw-xml-nodelist-wrapper" ]]; then COMPREPLY=("'xml'") elif [[ "$w2" == "--raw-xml-nodelist-wrapper" && "x$w0" == "x" ]]; then COMPREPLY=("''") @@ -76,9 +76,14 @@ elif [[ "$w1" == "--raw-xml-attribute-wrapper" ]]; then COMPREPLY=("'attribute'") elif [[ "$w2" == "--raw-xml-attribute-wrapper" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w3" == "--raw-xml-attribute-wrapper" && "x$w0" == "x" ]]; then COMPREPLY=("''") + + elif [[ "$w1" == "--parser-option" ]]; then COMPREPLY=("''") + elif [[ "$w2" == "--parser-option" && "x$w0" == "x" ]]; then COMPREPLY=("''") + else OPTIONS=( "--namespace" + "--parser-option" "--relation" "--records" "--name-is-xpath"