Don't override arguments set via options with positional arguments.

Andrew Dunstan <andrew@dunslane.net>

Commit: 7bebb851920e74cda57b866ac2f64123b44323c5
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2012-04-17T22:36:22Z
Releases: 8.3.19
Don't override arguments set via options with positional arguments.

A number of utility programs were rather careless about paremeters
that can be set via both an option argument and a positional
argument. This leads to results which can violate the Principal
Of Least Astonishment. These changes refuse to use positional
arguments to override settings that have been made via positional
arguments. The changes are backpatched to all live branches.

Files

PathChange+/−
src/bin/initdb/initdb.c modified +5 −2
src/bin/scripts/clusterdb.c modified +15 −11
src/bin/scripts/createlang.c modified +12 −2
src/bin/scripts/droplang.c modified +12 −2
src/bin/scripts/reindexdb.c modified +15 −10
src/bin/scripts/vacuumdb.c modified +16 −11