bash-completion.sh
branchv_0
changeset 46 ab27422a34b0
parent 45 5e5815fdcd2d
--- a/bash-completion.sh	Thu Sep 24 16:03:05 2020 +0200
+++ b/bash-completion.sh	Thu Sep 24 20:37:52 2020 +0200
@@ -28,7 +28,7 @@
 		"boolean"
 	)
 
-	WRITE_HEADER=(
+	BOOLEAN_VALUES=(
 		"true"
 		"false"
 	)
@@ -36,7 +36,8 @@
 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w1" == "--attribute"                     && "x$w0" == "x" ]];    then COMPREPLY=("''")
 	elif [[ "$w2" == "--attribute"                                      ]];    then COMPREPLY=($(compgen -W "${DATA_TYPE[*]}" -- "$w0"))
-	elif [[ "$w1" == "--write-header"                                   ]];    then COMPREPLY=($(compgen -W "${WRITE_HEADER[*]}" -- "$w0"))
+	elif [[ "$w1" == "--write-header"                                   ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
+	elif [[ "$w1" == "--records-on-stdin"                               ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
 	else
 		OPTIONS=(
 			"--relation"
@@ -44,7 +45,7 @@
 			"--attribute"
 			"--record"
 			"--records"
-			"--records-from-stdin"
+			"--records-on-stdin"
 		)
 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
 	fi