Browse Source

Merge pull request #2870 from jerr0328/docs-update-cli-scriptinfo

📚 Improve docs about ScriptInfo
pull/2871/merge
David Lord 6 years ago committed by GitHub
parent
commit
93e4b714a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/cli.rst

10
docs/cli.rst

@ -78,10 +78,12 @@ found, the command looks for a factory function named ``create_app`` or
``make_app`` that returns an instance. ``make_app`` that returns an instance.
When calling an application factory, if the factory takes an argument named When calling an application factory, if the factory takes an argument named
``info``, then the :class:`~cli.ScriptInfo` instance is passed as a keyword ``script_info``, then the :class:`~cli.ScriptInfo` instance is passed as a
argument. If parentheses follow the factory name, their contents are parsed keyword argument. If the application factory takes only one argument and no
as Python literals and passes as arguments to the function. This means that parentheses follow the factory name, the :class:`~cli.ScriptInfo` instance
strings must still be in quotes. is passed as a positional argument. If parentheses follow the factory name,
their contents are parsed as Python literals and passes as arguments to the
function. This means that strings must still be in quotes.
Run the Development Server Run the Development Server

Loading…
Cancel
Save