File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,19 @@ struct Cli {
14
14
#[ arg( short, long) ]
15
15
template : PathBuf ,
16
16
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 > ,
20
20
}
21
21
22
22
fn main ( ) -> anyhow:: Result < ( ) > {
23
23
let cli = Cli :: parse ( ) ;
24
24
25
25
let template = std:: fs:: read_to_string ( & cli. template ) ?;
26
26
27
- let definitions = Definition :: from_csv_files ( & cli. vars , & cli. types ) ?;
27
+ let definition = Definition :: from_csv_files ( & cli. vars , & cli. defs ) ?;
28
28
29
- let popped = popvars:: pop ( & template, definitions ) ?;
29
+ let popped = popvars:: pop ( & template, definition ) ?;
30
30
31
31
#[ cfg( windows) ]
32
32
println ! ( "{}" , popped. join( "\r \n " ) ) ;
You can’t perform that action at this time.
0 commit comments