From: Sebastian Harl Date: Mon, 22 Oct 2012 08:49:10 +0000 (+0200) Subject: pgtest.sh: Improved help/usage output. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01e56895151f3a7f0832639d5df05bd100218a51;p=postrr.git pgtest.sh: Improved help/usage output. --- 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