From fbcc0d69e81ce679a29182cbecc9ffa09b9cf239 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 18 Feb 2002 05:48:45 +0000 Subject: Fix param handling of create* admin scripts as described months ago. Properly handles default values. --- src/bin/scripts/dropdb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bin/scripts/dropdb') diff --git a/src/bin/scripts/dropdb b/src/bin/scripts/dropdb index 75ad3cea762..42ff00a0a15 100644 --- a/src/bin/scripts/dropdb +++ b/src/bin/scripts/dropdb @@ -11,7 +11,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.13 2001/09/30 22:17:51 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.14 2002/02/18 05:48:44 momjian Exp $ # #------------------------------------------------------------------------- @@ -89,6 +89,11 @@ do ;; *) dbname="$1" + if [ "$#" -ne 1 ]; then + echo "$CMDNAME: invalid option: $2" 1>&2 + echo "Try '$CMDNAME --help' for more information." 1>&2 + exit 1 + fi ;; esac shift -- cgit v1.2.3