From 1a559793251e80952bd3bdc668cfda46cbc38e73 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 8 Apr 2024 13:47:18 +0200 Subject: feat: add player names --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 4852856..893b151 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,6 +26,8 @@ struct Cli { faction: Faction, #[arg(long, default_value = "1.0")] scale_factor: f32, + #[arg(long, default_value = "unknown")] + name: String, } fn main() { @@ -50,6 +52,7 @@ fn main() { cli.champion, cli.faction, cli.scale_factor, + cli.name, ); } else { let (from_server_send, from_server_recv) = crossbeam_channel::unbounded(); @@ -72,6 +75,7 @@ fn main() { cli.champion, cli.faction, cli.scale_factor, + cli.name, ); } } -- cgit v1.2.3