Add better doc support for multicommands.

Review Request #12133 — Created March 10, 2022 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

The rbt-command-usage directive in our docs didn't handle the new
multi-commands very well (it would just print "rbt <subcommand>"). This
change extends it to rely on the commands' parser directly for
generating the help message, which improves the usage string, and adds a
list of available subcommands.

Built documentation and looked at the doc for rbt review.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Add better doc support for multicommands.
The `rbt-command-usage` directive in our docs didn't handle the new multi-commands very well (it would just print "rbt <subcommand>"). This change extends it to rely on the commands' parser directly for generating the help message, which improves the usage string, and adds a list of available subcommands. Testing Done: Built documentation and looked at the doc for `rbt review`.
feb5622c6449fcf7ea3f2ca40e578f79b9d7ecbd David Trowbridge
docs/rbtools/_ext/rbt_commands.py
Loading...