Files
flaskpaste/run.py
Username a9cd0313d3
All checks were successful
CI / Lint & Format (push) Successful in 22s
CI / Security Scan (push) Successful in 20s
CI / Memory Leak Check (push) Successful in 19s
CI / SBOM Generation (push) Successful in 19s
CI / Security Tests (push) Successful in 25s
CI / Unit Tests (push) Successful in 33s
run.py: accept --host and --port arguments
2025-12-25 22:52:02 +01:00

16 lines
493 B
Python
Executable File

#!/usr/bin/env python3
"""Development server entry point."""
import argparse
from app import create_app
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="FlaskPaste dev server")
parser.add_argument("--host", default="0.0.0.0", help="Host to bind to") # noqa: S104
parser.add_argument("--port", type=int, default=5000, help="Port to bind to")
args = parser.parse_args()
app = create_app("development")
app.run(host=args.host, port=args.port)