Closed dogbunny closed 6 years ago
seems reasonable enough to me.
@jcohen, can I get you to merge this change? I'm not a committer. The test failures are completely unrelated.
FAILURE: Error parsing xml file at /home/travis/build/twitter/commons/.pants.d/test/pytest/junitxml/TEST-886794e0dd1a558248764165d01c9c6465c70df6.xml: Error parsing xml file at /home/travis/build/twitter/commons/.pants.d/test/pytest/junitxml/TEST-886794e0dd1a558248764165d01c9c6465c70df6.xml: not well-formed (invalid token): line 2242, column 7765
I'm also not a committer :(
@brutkin do you have access to publish new dists?
I don't believe I have any access what-so-ever =)
Thanks for merging though!
Allow sorting of command names for help in python apps
Problem
When automatically generating help from the list of commands in a python app the commands will appear in an arbitrary order. This can make the output, when there are a numerous commands, confusing.
Solution
Add an option to sort the list of commands when generating the help output. Also add tests and a small fix to the readme.
Result
Developers can easily ensure a sorted list of commands will be printed when users call the app help.