update(bin): add doccomments to subcommands

This commit is contained in:
Wataru Otsubo 2025-03-11 19:49:16 +09:00
parent d0d5299101
commit 8732afd297

View file

@ -15,13 +15,16 @@ struct Args {
#[derive(Debug, Subcommand)] #[derive(Debug, Subcommand)]
enum Commands { enum Commands {
/// Generate register interface code.
Generate { Generate {
/// Output directory. /// Output directory.
out: path::PathBuf, out: path::PathBuf,
}, },
/// Generate flattened register map in CSV.
#[cfg(feature = "flatmap")] #[cfg(feature = "flatmap")]
Flatmap { Flatmap {
/// Flattened csv out path. /// Flattened csv out path.
/// Print to stdout by default.
flatmap: Option<path::PathBuf>, flatmap: Option<path::PathBuf>,
}, },
} }