8000 GitHub - jvasile/helpman: CLI tool to generate manpages from a binary's help output
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CLI tool to generate manpages from a binary's help output

License

Notifications You must be signed in to change notification settings

jvasile/helpman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helpman

Help man is a CLI tool to generate manpages from a rust binary's help output. This works well with clap output. If there are subcommands, their help gets included in the man page.

Usage: helpman [OPTIONS] <BINARY_PATH>

Arguments:

<BINARY_PATH> - Path to the binary for which the manpage will be generated

Options:

-n, --binary-name - Name of the binary (used in the manpage header). Defaults to the binary file name
-s, --section - Section number of the manpage (accepted values: 1-8) [default: 1]
-t, --title - Title of the manual (default depends on the section)
-h, --help - Print help
-V, --version - Print version

Install

Cargo install works:

cargo install --git https://github.com/jvasile/helpman.git --tag v0.1.0

The --tag parameter is optional.

Alternatively, if you are on a Debian system and have cargo deb installed, you can bin/dosh release and then:

dpkg -i target/debian/helpman*.deb

Dev helpers

  • bin contains dev utilities. You might want to add it to your path temporarily while working on helpman. I do this with direnv.

  • bin/dosh is a task runner

  • bin/cpsrc copies file contents to clipbboard

  • bin/helpman gets generated and will be a link to target/debug/helpman

About

CLI tool to generate manpages from a binary's help output

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0