Improve help support for custom commands and aliases
Review Request #11552 — Created March 23, 2021 and submitted — Latest diff uploaded
rbtools supports adding custom commands by either finding a corresponding executable on $PATH beginning with 'rbt-' or by setting an alias. However, these custom commands do not appear when running 'rbt help'. Also, getting command-specific help does not work - neither 'rbt help new-command' nor 'rbt new-command --help'. This change fixes both of these shortcomings.
Tested locally on my own ReviewBoard instance with both commands on $PATH and aliases. I saw both listed in
rbt help. I also testedrbt help <cmd>andrbt <cmd> --helpfor both commands on $PATH and aliases, and usage (or the alias string) was printed as expected.I did not run the automated rbtools test suite. \<excuses> It looked somewhat involved to get it set up (I'm a python newbie), and I wasn't sure whether the automated testing would actually hit my new code, anyway \</excuses>
Diff Revision 3
This is not the most recent revision of the diff. The latest diff is revision 9. See what's changed.
orig
1
2
3
4
5
6
7
8
9
Commits
Files
| rbtools/commands/main.py |
|---|