Skip to content

Passing --help to custom subcommand #3553

Answered by rimrul
vermiculus asked this question in Q&A
Discussion options

You must be logged in to vote

git foo --help gets internally converted to git help foo The git help command works by deciding a help page to show and then passing that to info/man(or some other man page viewer)/a browser (or a helper application) to show that page, depending on configuration. Local HTML help pages are the only case where we can even detect that the page doesn't exist, and even that detection is new in Git 2.34.0 (or maybe 2.33.1).

The message you've got is different from the message Git would produce, so I'm assuming you're on an older version.

You could propose passing the --help option to external commands in this specific case on the mailing list, but I'm not sure they'll like that idea. This only …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dscho
Comment options

@vermiculus
Comment options

Answer selected by vermiculus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dscho
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants