diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-02-18 05:48:45 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-02-18 05:48:45 +0000 |
commit | fbcc0d69e81ce679a29182cbecc9ffa09b9cf239 (patch) | |
tree | d39df86f4b7e0eff722b1f403c6ebcec22ea5eee /src/bin/scripts/createlang.sh | |
parent | c9361a7a9c476b183e5a2b91fa2b085bf03773c4 (diff) | |
download | postgresql-fbcc0d69e81ce679a29182cbecc9ffa09b9cf239.tar.gz postgresql-fbcc0d69e81ce679a29182cbecc9ffa09b9cf239.zip |
Fix param handling of create* admin scripts as described months ago.
Properly handles default values.
Diffstat (limited to 'src/bin/scripts/createlang.sh')
-rw-r--r-- | src/bin/scripts/createlang.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/scripts/createlang.sh b/src/bin/scripts/createlang.sh index 881257157bc..5034f65cbe6 100644 --- a/src/bin/scripts/createlang.sh +++ b/src/bin/scripts/createlang.sh @@ -7,7 +7,7 @@ # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.32 2002/01/03 05:30:04 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createlang.sh,v 1.33 2002/02/18 05:48:44 momjian Exp $ # #------------------------------------------------------------------------- @@ -116,6 +116,11 @@ do fi else dbname="$1" fi + 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 |