Fix a typo on the export

This commit is contained in:
Dandaedre 2026-07-21 08:01:26 +02:00
parent d50a22d3f8
commit 54688cb74f
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 2 additions and 2 deletions

View File

@ -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"))]

View File

@ -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();