The Sphinx contrib plugin adds a directive that can be used to document extensions to the Henson command line interface.

class henson.contrib.sphinx.HensonCLIDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]

A Sphinx directive that can be used to document a CLI extension.

This class wraps around autoprogram to generate Sphinx documentation for extensions that extend the Henson CLI.

.. hensoncli:: henson_database:Database
   :start_command: db

New in version 1.1.0.

Changed in version 1.2.0: The prog option will default to the proper way to invoke command line extensions.

For full details of the options support by the hensoncli directive, please refer to the sphinxcontrib-autoprogram documentation.