Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -70,4 +80,4 @@ def fetch_mf2(url):


if options.debug:
app.run(debug=True, port=8080)
app.run(debug=True, port=options.port)