Skip to content

Add manpage during/after installation to enable --help in subcommand mode #5

@HeapUnderfl0w

Description

@HeapUnderfl0w

When using a program as a subcommand in git (as in git global) git will intercept all calls to --help, and attempt to display its own help message. For that it attempts to fetch the corresponding manpage.

Due to git-global not providing its own manpage at the moment, all calls to help will fail:

$ git global --help
No manual entry for git-global

A current work around is to call git global directly with git-global --help which gives the expected help page, but its still a gotcha that requires retyping the command "just" for the help page.

A simple solution would be to have a subcommand that spits out the manpage for the user to put where its discovered properly by man.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions