Skip to content
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 man page for the command-line utility #526

Closed
sorairolake opened this issue Jun 30, 2023 · 10 comments · Fixed by #596
Closed

Add man page for the command-line utility #526

sorairolake opened this issue Jun 30, 2023 · 10 comments · Fixed by #596
Labels
T-Docs Issues for adding or improving documentation

Comments

@sorairolake
Copy link

I think this is useful for understanding the detailed usage of the command-line utility.

@TPS
Copy link

TPS commented Jun 30, 2023

Probably should be done concurrently w/ #472.

@g0blin-NN
Copy link

oxipng --help > oxipng.txt

@TPS
Copy link

TPS commented Jul 2, 2023

Given so many recent updates (most of which haven't merged, much less released), I'm not aware whether even the command-line help is current.

@g0blin-NN
Copy link

g0blin-NN commented Jul 2, 2023

Even like this? Sorry.
Although in version 6.0.0 they added.
[Feature] Add --check/-c CLI option
is present in --help. They didn't add anything else.

@TPS
Copy link

TPS commented Jul 2, 2023

I vaguely remember a discussion someplace in these Issues re: how out-of-date the --help is, & another PR recently (merged? 🤷🏾‍♂️) that is supposed to (partially? 🤔) solve that.

@andrews05
Copy link
Collaborator

--help has been kept up-to-date with all changes, it's just the Read Me that may be out of date.

@sorairolake Not saying there shouldn't be a man page, but was there something in particular you were wanting to understand that wasn't explained sufficiently in --help?

@sorairolake
Copy link
Author

@andrews05 I also think the usage in --help is explained sufficiently. However, I think it would be more useful to be able to see how to use oxipng on the web (such as https://man.archlinux.org/) or a console.

@andrews05
Copy link
Collaborator

One easy thing we could do is append the help output to the Read Me (in some sort of automated fashion). This would at least make it easily accessible online.

@andrews05 andrews05 added the T-Docs Issues for adding or improving documentation label Aug 22, 2023
@ace-dent ace-dent mentioned this issue Oct 8, 2023
@musicinmybrain
Copy link
Contributor

musicinmybrain commented Mar 16, 2024

You might (or might not) find clap_mangen (GitHub, crates.io) useful for this.

If you want to maintain a hand-written man page, I am happy to contribute one based on the current --help output.

@andrews05
Copy link
Collaborator

andrews05 commented Mar 16, 2024

Thanks @musicinmybrain, see #596 where I’m using that 🙂
I hope to pick it up again soon and see if I can make a deb package…

AlexTMjugador added a commit that referenced this issue Mar 18, 2024
This PR adds a build script to generate a man page using clap_mangen, as
per this example:
https://github.com/sondr3/clap-man-example/blob/main/build.rs

I'm not sure what to actually do with the man file from here, I guess
it's up to the packaging process to do something with it?
See
#69 (comment)

Note I couldn't see a way to include the `DISPLAY` chunk names from the
constant as we did before. They're now just hardcoded into the help and
will require manually updating if the list changes.

Closes #526

---------

Co-authored-by: Alejandro González <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Docs Issues for adding or improving documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants