--- a/bash-completion.sh Sat Dec 12 00:01:57 2020 +0100
+++ b/bash-completion.sh Sat Dec 12 14:42:36 2020 +0100
@@ -40,6 +40,12 @@
"java-manifest-mf"
);
+ QUOTING_TYPES=(
+ "none"
+ "apostrophes"
+ "quotes"
+ )
+
WRITER_OPTIONS=(
"dialect"
"comment-separator-for-sections"
@@ -49,6 +55,12 @@
"escape-backspace"
"escape-basic"
"escape-java-properties"
+ "quotes-type-for-sections"
+ "quotes-type-for-keys"
+ "quotes-type-for-values"
+ "quotes-pattern-for-sections"
+ "quotes-pattern-for-keys"
+ "quotes-pattern-for-values"
);
@@ -63,6 +75,9 @@
elif [[ "$w2" == "--writer-option" && "$w1" == "escape-backspace" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
elif [[ "$w2" == "--writer-option" && "$w1" == "escape-basic" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
elif [[ "$w2" == "--writer-option" && "$w1" == "escape-java-properties" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
+ elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-sections" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
+ elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-keys" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
+ elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-values" ]]; then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
elif [[ "$w2" == "--writer-option" && "x$w0" == "x" ]]; then COMPREPLY=("''")
else