Skip to content
Myr

pass sys.argv to flask cli

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 3fb368a · Browse files · 3 files+12 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+12 added−2 removed

  • other:+12 added−2 removed

3 files+12 added−2 removed

modified:src/flask/__init__.py+1 added-1 removed
55 unmodified lines
56from .signals import template_rendered57from .templating import render_template58from .templating import render_template_string5960__version__ = "1.1.1"60__version__ = "1.1.2.dev"
modified:src/flask/cli.py+2 added-1 removed
961 unmodified lines
962)963964965def main(as_module=False):966 # TODO omit sys.argv once https://github.com/pallets/click/issues/536 is fixed966 cli.main(prog_name="python -m flask" if as_module else None)967 cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else None)968969970if __name__ == "__main__":971 main(as_module=True)
modified:CHANGES.rst+9 added
1.. currentmodule:: flask23Version 1.1.24-------------56Unreleased78- Work around an issue when running the ``flask`` command with an9 external debugger on Windows. :issue:`3297`101112Version 1.1.113-------------1415Released 2019-07-08
993 unmodified lines