man
Generate structured man pages using troff-rs.
Usage
extern crate man;
use Man;
Installation
License
MIT OR Apache-2.0
Generate structured man pages using troff-rs.
extern crate man;
use man::Man;
fn main() {
let page = Man::new("basic")
.description("A basic example")
.author("Alice", Some("alice@email.com"))
.author("Bob", Some("bob@email.com"))
.flag(Some("-d"), Some("--debug"), Some("Activate debug mode"))
.flag(Some("-v"), Some("--verbose"), Some("Verbose mode"));
.option(Some("-o"), Some("--output"), "output", None, "Output file");
}
$ cargo add man
MIT OR Apache-2.0