summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEd Morley <emorley@mozilla.com>2017-01-17 14:57:26 +0000
committerTim Graham <timograham@gmail.com>2017-01-17 13:20:31 -0500
commit44cce3ed00afe7a404e9f6cba0f6292223c7fe0a (patch)
treea447a9a33194b64becc0ea97328dae5063f3222f /docs
parentd1eda9b4ad47c7773e65d90fd882e9d07759fe41 (diff)
Fixed #27739 -- Documented LabelCommand.label.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/custom-management-commands.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt
index c0723e8403..e6482a0da8 100644
--- a/docs/howto/custom-management-commands.txt
+++ b/docs/howto/custom-management-commands.txt
@@ -352,6 +352,12 @@ the command line, and does something with each of them.
Rather than implementing :meth:`~BaseCommand.handle`, subclasses must implement
:meth:`~LabelCommand.handle_label`, which will be called once for each label.
+.. attribute:: LabelCommand.label
+
+ A string describing the arbitrary arguments passed to the command. The
+ string is used in the usage text and error messages of the command.
+ Defaults to ``'label'``.
+
.. method:: LabelCommand.handle_label(label, **options)
Perform the command's actions for ``label``, which will be the string as