Customizing help
Dryparse generates standard help out of the box, but it also provides a
hierarchical representation of a help message via Help
.
You can obtain a help object for any of: Command
,
Option
, Group
.
Todo
Group help is not implemented yet.
git_help = Meta(git).help
dryparse.parse()
For example, the default help message for the git
subcommand we’ve been
building so far would be:
A version control software
Usage: git [-h] []
You can easily convert this to a help message string using:
str(git_help)
# or
git_help.text