changed name of 'debug' var in cli

This commit is contained in:
Djairo Hougee 2023-05-12 12:57:40 +02:00
parent bd9d08414c
commit b53dacbe79
2 changed files with 4 additions and 4 deletions

View File

@ -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),
}

View File

@ -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,
}