diff --git a/app.py b/app.py index c2a370e..47c51d1 100644 --- a/app.py +++ b/app.py @@ -17,6 +17,16 @@ help="Run application in debug mode", ) +parser.add_option( + "-p", + "--port", + action="store", + type="int", + dest="port", + default="8080", + help="Change dev server port (default is 8080)", +) + (options, args) = parser.parse_args() app = Flask(__name__) @@ -70,4 +80,4 @@ def fetch_mf2(url): if options.debug: - app.run(debug=True, port=8080) + app.run(debug=True, port=options.port) diff --git a/templates/index.jinja2 b/templates/index.jinja2 index 8391093..0d90736 100644 --- a/templates/index.jinja2 +++ b/templates/index.jinja2 @@ -1,120 +1,158 @@ - +