diff --git a/src/main.rs b/src/main.rs index 86d66d2..897d0a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,7 @@ fn main() { // main body loop loop { thread::sleep(time::Duration::from_millis(cfg.update_delay)); - match cli.debug { + match cli.list { true => print_players(&pf), false => default_loop(&pf, &cfg, &mut data, &rating_strings), } diff --git a/src/structs/cli.rs b/src/structs/cli.rs index 4482a00..41d4443 100644 --- a/src/structs/cli.rs +++ b/src/structs/cli.rs @@ -10,9 +10,9 @@ pub struct Cli { /// The name of the config file to use. #[arg(short = 'c', long = "config", default_value = "default")] pub config_file: String, - /// Enable debug mode. + /// Enable list mode. /// /// This mode prints all active players to stdout, to allow one to find the appropriate player names to use in the config files. - #[arg(short = 'd', long = "debug")] - pub debug: bool, + #[arg(short = 'l', long = "list")] + pub list: bool, } \ No newline at end of file