-
-
Notifications
You must be signed in to change notification settings - Fork 201
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 a man page #35
Comments
One potential alternative would be to port from structopt to Clap — which can work very nearly the same but is also a bit more flexible. There are already ways to convert the |
Updates on my comment above:
|
There is clap_mangen now. 🎉 |
I added a man page generation script in 03d55c8. Man page can be generated and viewed like this: OUT_DIR=$(pwd) cargo run --bin git-cliff-mangen
man ./git-cliff.1 |
I think this should probably go in ... of course if you follow my logic too far you have to wrap Rust projects in a proper build system like autoconf so everything gets installed to the right places depending on the system without putting the burden on distro packages to reinvent the wheel to spin up everything by hand in each upstream project. |
I think I'm going to leave it as is for now. Completions are also generated with the same approach. |
Is your feature request related to a problem? Please describe.
A man page should be added to the project for accessing the documentation using
man(1)
:Describe the solution you'd like
Add a man page under
docs/
in the root directory of the project. It should contain information about the command line arguments, configuration file sections/fields and the basic usage.There are 2 possible ways that I can think of to achieve this:
docs/git-cliff.md
README.md
should be updated about conversion instructions.docs/git-cliff.1
help2man(1)
can be used for assistance.Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: