Skip to content

Commit 503e15c

Browse files
committed
update main fn to use -d, --defs instead of --types
1 parent 1dd4f7a commit 503e15c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ struct Cli {
1414
#[arg(short, long)]
1515
template: PathBuf,
1616

17-
/// path to a .csv file containing a type (can be specified multiple times to pull in multiple types) the type name will be the filename
18-
#[arg(long)]
19-
types: Vec<PathBuf>,
17+
/// path to a .csv file containing a def (can be specified multiple times to pull in multiple defs) the def name will be the filename
18+
#[arg(short, long)]
19+
defs: Vec<PathBuf>,
2020
}
2121

2222
fn main() -> anyhow::Result<()> {
2323
let cli = Cli::parse();
2424

2525
let template = std::fs::read_to_string(&cli.template)?;
2626

27-
let definitions = Definition::from_csv_files(&cli.vars, &cli.types)?;
27+
let definition = Definition::from_csv_files(&cli.vars, &cli.defs)?;
2828

29-
let popped = popvars::pop(&template, definitions)?;
29+
let popped = popvars::pop(&template, definition)?;
3030

3131
#[cfg(windows)]
3232
println!("{}", popped.join("\r\n"));

0 commit comments

Comments
 (0)