Add optional file logging and fix board offsets

Introduce --log CLI flag to enable logging to
war_in_tunnels.log via simplelog.
This commit is contained in:
2026-03-27 18:28:16 +01:00
parent b71130d3d6
commit a0186ea0cb
8 changed files with 74 additions and 2 deletions
+7
View File
@@ -97,6 +97,13 @@ pub struct Cli {
default_value = "120"
)]
pub skill_points_limit: u16,
#[arg(
long,
help = "Enable logging to file (default: disabled)",
default_value_t = false
)]
pub log: bool,
}
pub fn get_args() -> Cli {