浏览代码

Fixed #27739 -- Documented LabelCommand.label.

Ed Morley 8 年之前
父节点
当前提交
44cce3ed00
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/howto/custom-management-commands.txt

+ 6 - 0
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