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.
This commit is contained in:
S. A. Bjørn 2022-03-24 08:21:44 -07:00 • committed by GitHub
parent f0d47204c9
commit a420316e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ struct Opt {
impl Opt {
fn from_args() -> anyhow::Result<Self> {
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"))

View file

@ -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"