-
Notifications
You must be signed in to change notification settings - Fork 5
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 manpage during/after installation to enable --help
in subcommand mode
#5
Comments
Thanks for filing! This sounds like a good idea. I'll point that
rust-lang/rfcs#2376 indicates that Cargo itself doesn't offer man-page installing functionality, so your idea about a I'll take a little time to look around at how other Rust binary projects are solving this. |
|
ah! perfect, that works too of course (i probably missed that option)
Yea that would work. Honestly i think its only really nessesary to:
these options would offer in my opinion the best of both worlds. git-gobal doesnt need to worry about specifics of the os (as the default location should be standard), and maintainers / packagers can modify stuff if nessesary. (PS. i am mentioning packagers often here because i do plan to create a derivation for my private nixos later) |
Thanks for the extra details and proposal. Ideally, I'd like to add something to the codebase that emits manpages based on our I've started looking at how to write manpages in general, and I'd like to try supporting both the traditional format and HTML (for git-bash on Windows). I can't commit to a timeline, but I'll keep this issue updated. I'm happy to review PRs, as well! |
I might try something with https://crates.io/crates/clap_mangen in the future, and I haven't gotten around to an HTML page yet, but I'm going to merge my branch into |
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:
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.
The text was updated successfully, but these errors were encountered: