Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flask "no such option --debug"

Tags:

flask

This happens when you try to run flask app using

flask run --debug

Tried:

flask run --debug

Expecting:

 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 272-345-882
like image 356
Yusuf Ganiyu Avatar asked Oct 19 '25 23:10

Yusuf Ganiyu


1 Answers

The simple solution to this is to change the order:

flask --debug run

and if you want to add other flags, you can!

flask --debug run --host=0.0.0.0 --port=8000
like image 157
Yusuf Ganiyu Avatar answered Oct 24 '25 18:10

Yusuf Ganiyu