bash-completion.sh
branchv_0
changeset 6 fb717cfbfea1
parent 5 d70ea23682aa
child 23 b497140b0b63
equal deleted inserted replaced
5:d70ea23682aa 6:fb717cfbfea1
    29 
    29 
    30 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    30 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    31 	elif [[ "$w1" == "--enable-sections"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    31 	elif [[ "$w1" == "--enable-sections"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    32 	elif [[ "$w1" == "--enable-sub-keys"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    32 	elif [[ "$w1" == "--enable-sub-keys"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    33 	elif [[ "$w1" == "--enable-comments"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    33 	elif [[ "$w1" == "--enable-comments"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
    34 	elif [[ "$w1" == "--enable-whitespace"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    34 	elif [[ "$w1" == "--enable-line-numbers"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    35 	elif [[ "$w1" == "--enable-line-numbers"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    35 	elif [[ "$w1" == "--enable-event-numbers"                           ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    36 	elif [[ "$w1" == "--enable-event-numbers"                           ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    36 	else
    37 	else
    37 		OPTIONS=(
    38 		OPTIONS=(
    38 			"--relation"
    39 			"--relation"
    39 			"--enable-sections"
    40 			"--enable-sections"
    40 			"--enable-sub-keys"
    41 			"--enable-sub-keys"
    41 			"--enable-comments"
    42 			"--enable-comments"
       
    43 			"--enable-whitespace"
    42 			"--enable-line-numbers"
    44 			"--enable-line-numbers"
    43 			"--enable-event-numbers"
    45 			"--enable-event-numbers"
    44 		)
    46 		)
    45 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    47 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    46 	fi
    48 	fi