Skip to content

cli shouldn't mess with sys.argv #3022

Description

@davidism

Just merged pallets/werkzeug#1416 so Werkzeug's reloader detects python -m module correctly. All of flask.cli.main() can be replaced with:

def main(as_module=False):
    cli.main(prog_name="python -m flask" if as_module else None)

Need to wait until Werkzeug 0.15 has been out for a bit before we can bump Flask's min version.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions