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
|
||||
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),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
Loading…
Reference in New Issue