We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice to provide various synonyms for the built-in submodules to make the CLI more intuitive/discoverable. Some possibilities:
cot info --> cot describe cot edit-hardware --> cot hw, cot hw-edit cot inject-config --> cot set-bootstrap
Etc.
The text was updated successfully, but these errors were encountered:
This could probably be done by calling add_parser() multiple times for each submodule - however the args for each subparser would need to be added each time as well unless we want to use a shared "parent parser" - however, see http://stackoverflow.com/questions/7498595/python-argparse-add-argument-to-multiple-subparsers.
Sorry, something went wrong.
Easier than that - add_parser() takes an aliases parameter:
aliases
checkout = subparsers.add_parser('checkout', aliases=['co'])
...but only in 3.2 or later, not 2.7: http://bugs.python.org/issue13879
Add subcommand aliases in Python 3.x (#21)
ef43152
bdfcae0
No branches or pull requests
Would be nice to provide various synonyms for the built-in submodules to make the CLI more intuitive/discoverable. Some possibilities:
cot info --> cot describe
cot edit-hardware --> cot hw, cot hw-edit
cot inject-config --> cot set-bootstrap
Etc.
The text was updated successfully, but these errors were encountered: