changed name of 'debug' var in cli
This commit is contained in:
parent
bd9d08414c
commit
b53dacbe79
|
|
@ -87,7 +87,7 @@ fn main() {
|
||||||
// main body loop
|
// main body loop
|
||||||
loop {
|
loop {
|
||||||
thread::sleep(time::Duration::from_millis(cfg.update_delay));
|
thread::sleep(time::Duration::from_millis(cfg.update_delay));
|
||||||
match cli.debug {
|
match cli.list {
|
||||||
true => print_players(&pf),
|
true => print_players(&pf),
|
||||||
false => default_loop(&pf, &cfg, &mut data, &rating_strings),
|
false => default_loop(&pf, &cfg, &mut data, &rating_strings),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ pub struct Cli {
|
||||||
/// The name of the config file to use.
|
/// The name of the config file to use.
|
||||||
#[arg(short = 'c', long = "config", default_value = "default")]
|
#[arg(short = 'c', long = "config", default_value = "default")]
|
||||||
pub config_file: String,
|
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.
|
/// 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")]
|
#[arg(short = 'l', long = "list")]
|
||||||
pub debug: bool,
|
pub list: bool,
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue