Skip to content

Conversation

@nc7s
Copy link
Contributor

@nc7s nc7s commented Oct 2, 2023

Fixes #226. cargo xtask gen && man gen/sd.1 to try it out.

I think this also fixes (?) #134, including list of flags and its formatting, and return codes. Unfornutaly clap_mangen has no custom section support (yet), so I've learned from clap-rs/clap#3579 and used roff to make the EXIT STATUSES and EXAMPLES sections.

Note that the list of flags formatting is "fixed" with separating each flag into its own paragraph, but that should be tolerable I guess.

@CosmicHorrorDev CosmicHorrorDev self-requested a review October 2, 2023 15:30
Copy link
Collaborator

@CosmicHorrorDev CosmicHorrorDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on! This is a huge improvement over the existing manpage

@CosmicHorrorDev CosmicHorrorDev merged commit 4ed7338 into chmln:master Oct 2, 2023
@nc7s nc7s deleted the man-with-clap_mangen branch October 14, 2023 21:23
@nc7s nc7s restored the man-with-clap_mangen branch October 14, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

man page rendering is broken, resulting in broken examples

2 participants