diff options
author | Bruce Momjian | 2002-02-18 05:48:45 +0000 |
---|---|---|
committer | Bruce Momjian | 2002-02-18 05:48:45 +0000 |
commit | fbcc0d69e81ce679a29182cbecc9ffa09b9cf239 (patch) | |
tree | d39df86f4b7e0eff722b1f403c6ebcec22ea5eee /src/bin/scripts/dropdb | |
parent | c9361a7a9c476b183e5a2b91fa2b085bf03773c4 (diff) |
Fix param handling of create* admin scripts as described months ago.
Properly handles default values.
Diffstat (limited to 'src/bin/scripts/dropdb')
-rw-r--r-- | src/bin/scripts/dropdb | 7 |
1 files changed, 6 insertions, 1 deletions
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 |