changed name of 'debug' var in cli

This commit is contained in:
djaidjai committed 2023-05-12 12:57:40 +02:00
1 parent bd9d08414c
commit b53dacbe79
2 files changed
+4 -4

No files matched your search

+1 -1
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),
}
+3 -3
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,
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.