From a420316e3055209fd9a1636b2341af36044f9a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=20A=2E=20Bj=C3=B8rn?= Date: Thu, 24 Mar 2022 08:21:44 -0700 Subject: [PATCH] Fix example typos (#655) both feedback.rs and record_wav.rs have "bleep" as their application name when constructing clap::Command. This commit changes the constructor argument for each example to match their filenames. --- examples/feedback.rs | 2 +- examples/record_wav.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/feedback.rs b/examples/feedback.rs index 822041d..323c183 100644 --- a/examples/feedback.rs +++ b/examples/feedback.rs @@ -31,7 +31,7 @@ struct Opt { impl Opt { fn from_args() -> anyhow::Result { - let app = clap::Command::new("beep") + let app = clap::Command::new("feedback") .arg(arg!( -l --latency [DELAY_MS] "Specify the delay between input and output [default: 150]")) .arg(arg!([IN] "The input audio device to use")) diff --git a/examples/record_wav.rs b/examples/record_wav.rs index f542101..a7f4de3 100644 --- a/examples/record_wav.rs +++ b/examples/record_wav.rs @@ -26,7 +26,7 @@ struct Opt { impl Opt { fn from_args() -> Self { - let app = clap::Command::new("beep").arg(arg!([DEVICE] "The audio device to use")); + let app = clap::Command::new("record_wav").arg(arg!([DEVICE] "The audio device to use")); #[cfg(all( any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), feature = "jack"