bash-completion.sh
branchv_0
changeset 45 5e5815fdcd2d
parent 44 dd7094457e44
child 46 ab27422a34b0
equal deleted inserted replaced
44:dd7094457e44 45:5e5815fdcd2d
    34 	)
    34 	)
    35 
    35 
    36 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    36 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    37 	elif [[ "$w1" == "--attribute"                     && "x$w0" == "x" ]];    then COMPREPLY=("''")
    37 	elif [[ "$w1" == "--attribute"                     && "x$w0" == "x" ]];    then COMPREPLY=("''")
    38 	elif [[ "$w2" == "--attribute"                                      ]];    then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0"))
    38 	elif [[ "$w2" == "--attribute"                                      ]];    then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0"))
    39 	elif [[ "$w1" == "--write-header"                                  ]];    then COMPREPLY=($(compgen -W "${WRITE_HEADER[*]}" -- "$w0"))
    39 	elif [[ "$w1" == "--write-header"                                   ]];    then COMPREPLY=($(compgen -W "${WRITE_HEADER[*]}" -- "$w0"))
    40 	else
    40 	else
    41 		OPTIONS=(
    41 		OPTIONS=(
    42 			"--relation"
    42 			"--relation"
    43 			"--write-header"
    43 			"--write-header"
    44 			"--attribute"
    44 			"--attribute"