aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-04-08 13:19:15 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-04-08 13:20:24 +0200
commitd39c819000569b468cfa68977f8a8b03062ac5d9 (patch)
treeaf6d85a04080a2027591dcd6388822c24bd38dcf /src/main.rs
parent6471203be63bb5dd7716aa9841014f7e9105d452 (diff)
feat: add `--scale-factor` option
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 210909b..4852856 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -24,6 +24,8 @@ struct Cli {
champion: Champion,
#[arg(long, default_value = "yellow")]
faction: Faction,
+ #[arg(long, default_value = "1.0")]
+ scale_factor: f32,
}
fn main() {
@@ -47,6 +49,7 @@ fn main() {
TransportConfig::UdpSocket(client_addr),
cli.champion,
cli.faction,
+ cli.scale_factor,
);
} else {
let (from_server_send, from_server_recv) = crossbeam_channel::unbounded();
@@ -68,6 +71,7 @@ fn main() {
},
cli.champion,
cli.faction,
+ cli.scale_factor,
);
}
}