topola/build.rs

12 lines
322 B
Rust

include!("src/bin/topola/cli.rs");
use clap_mangen::Man;
use clap::CommandFactory;
use std::fs::File;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Cli::command();
let man = Man::new(cli);
let mut file = File::create(concat!("assets", "/topola.1"))?;
man.render(&mut file)?;
Ok(())
}