From 2b84cbb60f6ff6cb58d42dff026aaf0b2e9ca8ab Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 29 Jan 2000 16:58:54 +0000 Subject: A few minor psql enhancements Initdb help correction Changed end/abort to commit/rollback and changed related notices Commented out way old printing functions in libpq Fixed a typo in alter table / alter column --- src/bin/initdb/initdb.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/bin/initdb') diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 52a66507e8c..cf54d1925a3 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -26,7 +26,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.82 2000/01/20 21:51:05 petere Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.83 2000/01/29 16:58:42 petere Exp $ # #------------------------------------------------------------------------- @@ -204,6 +204,11 @@ do -E*) MULTIBYTE=`echo $1 | sed 's/^-E//'` ;; + -*) + echo "$CMDNAME: invalid option: $1" + echo "Try -? for help." + exit 1 + ;; *) PGDATA=$1 ;; @@ -218,15 +223,15 @@ if [ "$usage" ]; then echo " $CMDNAME [options] datadir" echo echo "Options:" - echo " [-D, --pgdata] Location for this database" + echo " [-D, --pgdata] Location for this database" echo " -W, --pwprompt Prompt for a password for the new superuser's" if [ -n "$MULTIBYTE" ] then - echo " -e, --encoding Set the default multibyte encoding for new databases" + echo " -E, --encoding Set the default multibyte encoding for new databases" fi echo " -i, --sysid Database sysid for the superuser" echo "Less commonly used options: " - echo " -L, --pglib Where to find the input files (should happend automatically" + echo " -L, --pglib Where to find the input files" echo " -t, --template Re-initialize template database only" echo " -d, --debug Generate lots of debugging output" echo " -n, --noclean Do not clean up after errors" -- cgit v1.2.3