pub fn generate_man_pages(cmd: &Command, out_dir: &Path) -> Result<()>Expand description
Generate man pages for all commands
This function generates comprehensive man pages using clap_mangen. The man pages are written to the specified output directory.
§Arguments
cmd- The clap::Command structure to generate man pages forout_dir- Directory where man pages will be written
§Examples
use ipfrs_cli::{build_cli, utils::generate_man_pages};
use std::path::Path;
let cmd = build_cli();
let out_dir = Path::new("target/man");
generate_man_pages(&cmd, out_dir).expect("Failed to generate man pages");