Michael Merickel
2016-12-15 6721ffd7075ff5357e0c19dd20e123d068cddce4
improve config_vars docs in some scripts to mirror pserve
3 files modified
19 ■■■■■ changed files
pyramid/scripts/prequest.py 7 ●●●●● patch | view | raw | blame | history
pyramid/scripts/proutes.py 7 ●●●●● patch | view | raw | blame | history
pyramid/scripts/ptweens.py 5 ●●●●● patch | view | raw | blame | history
pyramid/scripts/prequest.py
@@ -104,9 +104,10 @@
        'config_vars',
        nargs='*',
        default=(),
        help='Arbitrary options to override those in the [app:main] section '
             'of the configuration file.',
    )
        help="Variables required by the config file. For example, "
             "`http_port=%%(http_port)s` would expect `http_port=8080` to be "
             "passed here.",
        )
    get_app = staticmethod(get_app)
    stdin = sys.stdin
pyramid/scripts/proutes.py
@@ -276,9 +276,10 @@
        'config_vars',
        nargs='*',
        default=(),
        help='Arbitrary options to override those in the [app:main] section '
             'of the configuration file.',
    )
        help="Variables required by the config file. For example, "
             "`http_port=%%(http_port)s` would expect `http_port=8080` to be "
             "passed here.",
        )
    def __init__(self, argv, quiet=False):
        self.args = self.parser.parse_args(argv[1:])
pyramid/scripts/ptweens.py
@@ -40,8 +40,9 @@
        'config_vars',
        nargs='*',
        default=(),
        help='Arbitrary options to override those in the [app:main] section '
             'of the configuration file.',
        help="Variables required by the config file. For example, "
             "`http_port=%%(http_port)s` would expect `http_port=8080` to be "
             "passed here.",
        )
    stdout = sys.stdout