bash-completion.sh
branchv_0
changeset 5 bee7acb57330
parent 4 372b161669e4
child 8 7c85dc9a310b
equal deleted inserted replaced
4:372b161669e4 5:bee7acb57330
    59 		"quotes-type-for-keys"
    59 		"quotes-type-for-keys"
    60 		"quotes-type-for-values"
    60 		"quotes-type-for-values"
    61 		"quotes-pattern-for-sections"
    61 		"quotes-pattern-for-sections"
    62 		"quotes-pattern-for-keys"
    62 		"quotes-pattern-for-keys"
    63 		"quotes-pattern-for-values"
    63 		"quotes-pattern-for-values"
       
    64 		"allow-sections"
       
    65 		"hierarchy-separator"
    64 	);
    66 	);
    65 
    67 
    66 
    68 
    67 	if   [[ "$w1" == "--relation"                                            && "x$w0" == "x" ]];    then COMPREPLY=("''")
    69 	if   [[ "$w1" == "--relation"                                            && "x$w0" == "x" ]];    then COMPREPLY=("''")
    68 	elif [[ "$w1" == "--style"                                                                ]];    then COMPREPLY=($(compgen -W "${STYLES[*]}" -- "$w0"))
    70 	elif [[ "$w1" == "--style"                                                                ]];    then COMPREPLY=($(compgen -W "${STYLES[*]}" -- "$w0"))
    76 	elif [[ "$w2" == "--writer-option" && "$w1" == "escape-basic"                             ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    78 	elif [[ "$w2" == "--writer-option" && "$w1" == "escape-basic"                             ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    77 	elif [[ "$w2" == "--writer-option" && "$w1" == "escape-java-properties"                   ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    79 	elif [[ "$w2" == "--writer-option" && "$w1" == "escape-java-properties"                   ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    78 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-sections"                 ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
    80 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-sections"                 ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
    79 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-keys"                     ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
    81 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-keys"                     ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
    80 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-values"                   ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
    82 	elif [[ "$w2" == "--writer-option" && "$w1" == "quotes-type-for-values"                   ]];    then COMPREPLY=($(compgen -W "${QUOTING_TYPES[*]}" -- "$w0"))
       
    83 	elif [[ "$w2" == "--writer-option" && "$w1" == "allow-sections"                           ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
    84 	elif [[ "$w2" == "--writer-option" && "$w1" == "hierarchy-separator"                      ]];    then COMPREPLY=("'/'")
    81 	elif [[ "$w2" == "--writer-option"                                       && "x$w0" == "x" ]];    then COMPREPLY=("''")
    85 	elif [[ "$w2" == "--writer-option"                                       && "x$w0" == "x" ]];    then COMPREPLY=("''")
    82 
    86 
    83 	else
    87 	else
    84 		OPTIONS=(
    88 		OPTIONS=(
    85 			"--writer-option"
    89 			"--writer-option"