From 01e56895151f3a7f0832639d5df05bd100218a51 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 22 Oct 2012 10:49:10 +0200 Subject: [PATCH] pgtest.sh: Improved help/usage output. --- pgtest.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pgtest.sh b/pgtest.sh index 546d2db..d286d23 100755 --- a/pgtest.sh +++ b/pgtest.sh @@ -77,7 +77,7 @@ case "$1" in stop) if test $# -ne 1; then echo "Too many arguments!" >&2 - echo "Usage: $0 setup" >&2 + echo "Usage: $0 stop" >&2 exit 1 fi $BIN_DIR/pg_ctl -D $TARGET/var/lib/postgresql/main stop @@ -93,6 +93,20 @@ case "$1" in ;; *) echo "Usage: $0 setup|client|stop|start" >&2 + echo "" + echo " - setup" + echo " Set up a new PostgreSQL server listening on port 2345." + echo " - client []" + echo " Start a PostgreSQL interactive terminal connected to the" + echo " PostgreSQL server on port 2345." + echo " - start [-B []]" + echo " Start the PostgreSQL server." + echo " - stop" + echo " Stop the PostgreSQL server." + echo "" + echo "Environment variables:" + echo " - TARGET" + echo " Target directory of the PostgreSQL test setup." exit 1 ;; esac -- 2.30.2