Steve Piercy
2016-12-11 5320e7e0d4b465a7c38004652c3ccf4c5b4e79c7
add config_args option, fix nonsense options parameter
1 files modified
10 ■■■■■ changed files
pyramid/scripts/prequest.py 10 ●●●●● patch | view | raw | blame | history
pyramid/scripts/prequest.py
@@ -101,6 +101,14 @@
        help='The path of the request.',
        )
    parser.add_argument(
        'config_args',
        nargs='*',
        default=(),
        help='Arbitrary options to override those in the [app:main] section '
             'of the configuration file.',
    )
    get_app = staticmethod(get_app)
    stdin = sys.stdin
@@ -150,7 +158,7 @@
                headers[name] = value.strip()
        app = self.get_app(app_spec, self.args.app_name,
                options=self.args)
                options=self.args.config_args)
        request_method = (self.args.method or 'GET').upper()