Hashfyre / pyzure-cli

A CLI tool for Microsoft Azure Storage and Service Bus operations, built on Azure Python SDK, functionally a clone of azure-xplat-cli built on Azure NodeJS SDK
MIT License
1 stars 0 forks source link

Make help command offer usage information for leaf level commands too. #3

Closed 5310 closed 8 years ago

5310 commented 8 years ago

Every command at the leaf level accepts the -h option to display usage information. I propose that the help command also provide the same information provided with leaf level commands, or of the command group.

5310 commented 8 years ago

Would be trivial to do with Docopt.

We will just route pyzure-cli help [<args>...] to pyzure-cli --help <args>..., the respective leaves represented by <args>... will have the documentation already.

We would probably need to prioritize the help before resolving anything else, but that seems like a sound idea anyway.