Replace run --debug with --debug run in docs.

This commit is contained in:
Andrzej Bartosiński 2023-07-08 15:32:07 +02:00
parent cb825687a5
commit 2a60ded1d0
8 changed files with 11 additions and 11 deletions

View file

@ -95,7 +95,7 @@ the ``--debug`` option.
.. code-block:: console .. code-block:: console
$ flask --app hello run --debug $ flask --app hello --debug run
* Serving Flask app "hello" * Serving Flask app "hello"
* Debug mode: on * Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
@ -109,7 +109,7 @@ debug mode for any command. The following two ``run`` calls are equivalent.
.. code-block:: console .. code-block:: console
$ flask --app hello --debug run $ flask --app hello --debug run
$ flask --app hello run --debug $ flask --app hello --debug run
Watch and Ignore Files with the Reloader Watch and Ignore Files with the Reloader
@ -543,7 +543,7 @@ a name such as "flask run".
Click the *Script path* dropdown and change it to *Module name*, then input ``flask``. Click the *Script path* dropdown and change it to *Module name*, then input ``flask``.
The *Parameters* field is set to the CLI command to execute along with any arguments. The *Parameters* field is set to the CLI command to execute along with any arguments.
This example uses ``--app hello run --debug``, which will run the development server in This example uses ``--app hello --debug run``, which will run the development server in
debug mode. ``--app hello`` should be the import or file with your Flask app. debug mode. ``--app hello`` should be the import or file with your Flask app.
If you installed your project as a package in your virtualenv, you may uncheck the If you installed your project as a package in your virtualenv, you may uncheck the

View file

@ -52,7 +52,7 @@ interactive debugger and reloader by default in debug mode.
.. code-block:: text .. code-block:: text
$ flask --app hello run --debug $ flask --app hello --debug run
Using the option is recommended. While it is possible to set :data:`DEBUG` in your Using the option is recommended. While it is possible to set :data:`DEBUG` in your
config or code, this is strongly discouraged. It can't be read early by the config or code, this is strongly discouraged. It can't be read early by the

View file

@ -43,7 +43,7 @@ The debugger is enabled by default when the development server is run in debug m
.. code-block:: text .. code-block:: text
$ flask --app hello run --debug $ flask --app hello --debug run
When running from Python code, passing ``debug=True`` enables debug mode, which is When running from Python code, passing ``debug=True`` enables debug mode, which is
mostly equivalent. mostly equivalent.
@ -72,7 +72,7 @@ reloader should be disabled so they don't interfere with the external debugger.
.. code-block:: text .. code-block:: text
$ flask --app hello run --debug --no-debugger --no-reload $ flask --app hello --debug run --no-debugger --no-reload
When running from Python: When running from Python:

View file

@ -108,7 +108,7 @@ To enable debug mode, use the ``--debug`` option.
.. code-block:: text .. code-block:: text
$ flask --app hello run --debug $ flask --app hello --debug run
* Serving Flask app 'hello' * Serving Flask app 'hello'
* Debug mode: on * Debug mode: on
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit) * Running on http://127.0.0.1:5000 (Press CTRL+C to quit)

View file

@ -24,7 +24,7 @@ debug mode.
.. code-block:: text .. code-block:: text
$ flask --app hello run --debug $ flask --app hello --debug run
This enables debug mode, including the interactive debugger and reloader, and then This enables debug mode, including the interactive debugger and reloader, and then
starts the server on http://localhost:5000/. Use ``flask run --help`` to see the starts the server on http://localhost:5000/. Use ``flask run --help`` to see the

View file

@ -137,7 +137,7 @@ follow the tutorial.
.. code-block:: text .. code-block:: text
$ flask --app flaskr run --debug $ flask --app flaskr --debug run
You'll see output similar to this: You'll see output similar to this:

View file

@ -19,7 +19,7 @@ In a separate terminal, activate the virtualenv and run the Flask development se
```shell ```shell
$ . ./.venv/bin/activate $ . ./.venv/bin/activate
$ flask -A task_app run --debug $ flask -A task_app --debug run
``` ```
Go to http://localhost:5000/ and use the forms to submit tasks. You can see the polling Go to http://localhost:5000/ and use the forms to submit tasks. You can see the polling

View file

@ -48,7 +48,7 @@ Run
.. code-block:: text .. code-block:: text
$ flask --app flaskr init-db $ flask --app flaskr init-db
$ flask --app flaskr run --debug $ flask --app flaskr --debug run
Open http://127.0.0.1:5000 in a browser. Open http://127.0.0.1:5000 in a browser.