Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make version number optional and reflect in help #21
This commit modifies the BasicHelpFunc to check whether Version is an empty string, and if it is omits it from the help generated by BasicHelpFunc. It also adds a test of this behaviour.
This is useful in situations where you are using nested CLIs to get aws-cli style user interfaces, and conseuqently only want Version as a top level switch - for example:
should not list --version as an option, but
should list --version as an option.