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

Print main command along with subcommand on help page #341

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

teto519f
Copy link

Hey everybody
While using argparse I stumbled upon an issue in the Usage section of subcommand help pages.

For example when typing git add --help the synopsis section starts like this:
git add [ ...]

When using argparse to simulate this (like in the example from your readme) the output would look like this:
Usage: add [ ...]

I think argparse should also print a "git" in front of the "add", so I implemented a quick fix for this.

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.

1 participant