Éric Araujo avatar Éric Araujo committed ed1a55f

Minor tweaks to command submodule docs

Comments (0)

Files changed (1)


 ``peel_banana`` (so that users can run ``setup.py peel_banana``), you'd copy
 :file:`command_template` to :file:`packaging/command/peel_banana.py`, then edit
 it so that it's implementing the class :class:`peel_banana`, a subclass of
-Subclasses of :class:`Command` must define the following methods.
+:class:`Command`.  It must define the following methods:
 .. method:: Command.initialize_options()
    filesystem interaction should be done by :meth:`run`.
+Command classes may define this attribute:
 .. attribute:: Command.sub_commands
    *sub_commands* formalizes the notion of a "family" of commands,
    *sub_commands* is usually defined at the *end* of a class, because
    predicates can be methods of the class, so they must already have been
    defined.  The canonical example is the :command:`install_dist` command.
+.. XXX document how to add a custom command to another one's subcommands
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.