Skip to content
New issue

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

Add description to all subparser helps #359

Conversation

dodecatheon
Copy link
Contributor

Add the subcommand description to all command subparsers so that any command of the form

ramble --help

will display the subcommand's doc string just below the usage line.

For example, 'ramble workspace mirror --help' will show "mirror current workspace state" below
usage.

The subcommand doc string is already available via 'ramble --help' under the
positional argument section, but that usage is not obvious to users unfamiliar with argparse
subcommands, and adding the description increases help output by (usually) only one line
while making the commandline interface more user friendly.

Add the subcommand description to all command subparsers so that
any command of the form

   ramble <command> <subcommand> --help

will display the subcommand's doc string below the usage line.
@dodecatheon dodecatheon force-pushed the add-description-to-subparser-help branch from 4ea4ed9 to ae9d954 Compare December 19, 2023 19:53
@douglasjacobsen douglasjacobsen merged commit 605291f into GoogleCloudPlatform:develop Dec 19, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants