flask icon indicating copy to clipboard operation
flask copied to clipboard

CLI flask run describes that uses --debug to enable debugger and reloader, but flask run does not have the -- debug option

Open qq1u opened this issue 2 years ago • 1 comments

flask run --help description: The reloader and debugger are enabled by default with the '--debug' option. But when I use flask run --debug, it tells me that there is no --debug option

flask run --debug

image

According to the description of flask run --help, the --debug option should be supported.

Environment:

  • Python version: 3.10.6
  • Flask version: 2.2.2

qq1u avatar Aug 21 '22 05:08 qq1u

The --debug option is for flask itself, not the subcommand (e.g. run):

flask --debug run

greyli avatar Aug 21 '22 08:08 greyli