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 2 (Latest)

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`.
43b1fa0cb3a867de472602ce9a3a939cbe5f2f6c David Trowbridge
docs/rbtools/_ext/rbt_commands.py
Loading...