From 5ca971a18a708341dd49f27c23fec40ea4342d13 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 16 Dec 1999 20:10:02 +0000 Subject: Hi, I sending promised patch with: * getopt_long() - for pg_dump (portable) * and "Usage: " changes in scripts in src/bin/ - this changes are cosmetic only, not change any feature ...etc. All PostgreSQL routines (scripts) support now long options and help's output is alike for all scripts and all support -? or --help. Karel Karel Zak http://home.zf.jcu.cz/~zakkr/ --- src/bin/scripts/dropdb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/bin/scripts/dropdb') diff --git a/src/bin/scripts/dropdb b/src/bin/scripts/dropdb index 8ef22fce84d..58b4076ebb9 100644 --- a/src/bin/scripts/dropdb +++ b/src/bin/scripts/dropdb @@ -10,7 +10,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.3 1999/12/07 22:41:44 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.4 1999/12/16 20:10:02 momjian Exp $ # #------------------------------------------------------------------------- @@ -96,8 +96,19 @@ done if [ "$usage" ]; then - echo "Usage: $CMDNAME [-h server] [-p port] [-U username] [-i] dbname" - exit 0 + echo "" + echo "Usage: $CMDNAME [options] dbname" + echo "" + echo " -h HOSTNAME, --host=HOSTNAME " + echo " -p PORT, --port=PORT " + echo " -u USERNAME, --username=USERNAME " + echo " -W, --password " + echo " -e, --echo " + echo " -q, --quiet " + echo " -i, --interactive " + echo " -?, --help " + echo "" + exit 1 fi if [ -z "$dbname" ]; then -- cgit v1.2.3