Fix a typo on the export
This commit is contained in:
parent
d50a22d3f8
commit
54688cb74f
|
|
@ -50,7 +50,7 @@ pub struct WeaponConfig {
|
|||
pub target: ExportTarget,
|
||||
|
||||
/// The path to export to
|
||||
#[arg(short, long, default_value = "./Craft")]
|
||||
#[arg(short, long, default_value = "./Craft/")]
|
||||
pub export: String,
|
||||
|
||||
#[arg(long, default_value_t = String::from("safe"))]
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ pub fn export_weapons(args: &WeaponConfig, config: &Config) -> Result<(), Weapon
|
|||
|
||||
let tex = refined_list.to_tex(config).unwrap();
|
||||
|
||||
let name = format!("{}gen-forge-table.tex", args.export);
|
||||
let name = format!("{}/gen-forge-table.tex", args.export);
|
||||
println!("Writing to file {name}");
|
||||
let mut f = fs::File::create(name).unwrap();
|
||||
writeln!(f, "{}", tex).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in New Issue