You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes: I'm writing a git extension. By convention, git extensions are discovered by naming the binary git-<extension name>, but invoked as a git subcommand (git <extension name>). Ultimately, I'd like to reflect this nuance on the manpage, with the displayed name being git-<extension name>, but the synopsis showing git <extension name>.
name doesn't suit my need here because I don't want the subcommand variant displayed throughout the manpage, just places where an invocation example is provided. display_name does not currently impact the synopsis (my PR updates it to be considered, but with lower precedence than the bin_name).
Please complete the following tasks
Rust Version
1.67.1
Clap Version
4.1.8
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run
Actual Behaviour
The generated manpage has a synopsis section that uses the Crate name for the sample invocation:
Expected Behaviour
The generated manpage should have synopsis section that uses the provided
bin_name
for the sample invocation:Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: