Skip to content

Commit d96bdb3

Browse files
author
James William Pye
committed
Disable interspersed arguments to allow -m to work sanely.
It was originally enabled to allow #!x scripts to accept client parameters.
1 parent 9e1b92c commit d96bdb3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

postgresql/bin/pg_python.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ def extract_parameters(src):
3838
]
3939

4040
def command(args = sys.argv):
41-
# Allow connection options to be collected in #!pg_python lines
4241
p = clientparameters.DefaultParser(
4342
"%prog [connection options] [script] [-- script options] [args]",
4443
version = '1.0',
4544
option_list = default_options
4645
)
47-
p.enable_interspersed_args()
46+
p.disable_interspersed_args()
4847
co, ca = p.parse_args(args[1:])
4948
in_xact = co.in_xact
5049

0 commit comments

Comments
 (0)