diff --git a/README.md b/README.md index efb04f0..3ac43fc 100644 --- a/README.md +++ b/README.md @@ -167,8 +167,8 @@ Usage: hyper_headset [OPTIONS] Options: --refresh_interval Set the refresh interval (in seconds) [default: 3] - --press_mute_key_on_headset_mute - The app will simulate pressing the microphone key whoever the headsets is muted or unmuted. [default: true] [possible values: true, false] + --press_mute_key + The app will simulate pressing the microphone mute key whoever the headsets is muted or unmuted. [default: true] [possible values: true, false] -h, --help Print help -V, --version diff --git a/src/main.rs b/src/main.rs index 635cc3c..5e1b578 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,10 +20,10 @@ fn main() { .value_parser(clap::value_parser!(u64)), ) .arg( - Arg::new("press_mute_key_on_headset_mute") - .long("press_mute_key_on_headset_mute") + Arg::new("press_mute_key") + .long("press_mute_key") .required(false) - .help("The app will simulate pressing the microphone key whoever the headsets is muted or unmuted.") + .help("The app will simulate pressing the microphone mute key whoever the headsets is muted or unmuted.") .default_value("true") .value_parser(clap::value_parser!(bool)), ) @@ -31,9 +31,7 @@ fn main() { let mut enigo = Enigo::new(&Settings::default()).unwrap(); let refresh_interval = *matches.get_one::("refresh_interval").unwrap_or(&3); - let press_mute_key = *matches - .get_one::("press_mute_key_on_headset_mute") - .unwrap_or(&true); + let press_mute_key = *matches.get_one::("press_mute_key").unwrap_or(&true); let refresh_interval = Duration::from_secs(refresh_interval); let tray_handler = TrayHandler::new(StatusTray::new()); loop {