Fixed #25350 -- Added alias --no-input for --noinput to management commands.

This commit is contained in:
Raphael Michel 2015-09-07 15:17:55 +02:00 committed by Tim Graham
parent 25c157e4cc
commit 1bbca7961c
11 changed files with 29 additions and 10 deletions

View file

@ -90,7 +90,12 @@ Some commonly used options are:
.. django-admin-option:: --noinput
Do NOT prompt the user for input of any kind.
Do NOT prompt the user for input of any kind. You can use ``--no-input``
as an alias for this option.
.. versionchanged:: 1.9
The ``--no-input`` alias was added.
.. django-admin-option:: -i <pattern>
.. django-admin-option:: --ignore <pattern>

View file

@ -1552,7 +1552,12 @@ If not provided all locales are processed.
Use the ``--noinput`` option to suppress all user prompting, such as "Are
you sure?" confirmation messages. This is useful if ``django-admin`` is
being executed as an unattended, automated script.
being executed as an unattended, automated script. You can use ``--no-input``
as an alias for this option.
.. versionchanged:: 1.9
The ``--no-input`` alias was added.
Extra niceties
==============

View file

@ -418,6 +418,9 @@ Management Commands
* The ``django`` package may be run as a script, i.e. ``python -m django``,
which will behave the same as ``django-admin``.
* Management commands that have the ``--noinput`` option now also take
``--no-input`` as an alias for that option.
Migrations
^^^^^^^^^^