mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-04-20 03:36:25 +09:00
Compare commits
2 commits
76595d0c92
...
8732afd297
Author | SHA1 | Date | |
---|---|---|---|
8732afd297 | |||
d0d5299101 |
2 changed files with 4 additions and 1 deletions
|
@ -38,5 +38,5 @@ thiserror = "2.0"
|
||||||
vergen-gitcl = { version = "1.0", features = ["build", "cargo", "rustc", "si"] }
|
vergen-gitcl = { version = "1.0", features = ["build", "cargo", "rustc", "si"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
bin = ["anyhow", "env_logger"]
|
bin = ["anyhow", "env_logger", "flatmap"]
|
||||||
flatmap = ["csv"]
|
flatmap = ["csv"]
|
||||||
|
|
|
@ -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>,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue