This commit is contained in:
Rémi Lauzier 2022-02-18 13:08:38 -05:00
parent 83b96beb44
commit 6087b05604
No known key found for this signature in database
GPG key ID: D4B9ECD143336C1D
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ thiserror = "1.0.2"
anyhow = "1.0.12" anyhow = "1.0.12"
hound = "3.4" hound = "3.4"
ringbuf = "0.2" ringbuf = "0.2"
clap = { version = "3.0", default-features = false, features = ["std"] } clap = { version = "3.1", default-features = false, features = ["std"] }
[target.'cfg(target_os = "android")'.dev-dependencies] [target.'cfg(target_os = "android")'.dev-dependencies]
ndk-glue = "0.6" ndk-glue = "0.6"

View file

@ -18,7 +18,7 @@ struct Opt {
impl Opt { impl Opt {
fn from_args() -> Self { fn from_args() -> Self {
let app = clap::App::new("beep").arg(arg!([DEVICE] "The audio device to use")); let app = clap::Command::new("beep").arg(arg!([DEVICE] "The audio device to use"));
#[cfg(all( #[cfg(all(
any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"),
feature = "jack" feature = "jack"

View file

@ -31,7 +31,7 @@ struct Opt {
impl Opt { impl Opt {
fn from_args() -> anyhow::Result<Self> { fn from_args() -> anyhow::Result<Self> {
let app = clap::App::new("beep") let app = clap::Command::new("beep")
.arg(arg!( .arg(arg!(
-l --latency [DELAY_MS] "Specify the delay between input and output [default: 150]")) -l --latency [DELAY_MS] "Specify the delay between input and output [default: 150]"))
.arg(arg!([IN] "The input audio device to use")) .arg(arg!([IN] "The input audio device to use"))

View file

@ -26,7 +26,7 @@ struct Opt {
impl Opt { impl Opt {
fn from_args() -> Self { fn from_args() -> Self {
let app = clap::App::new("beep").arg(arg!([DEVICE] "The audio device to use")); let app = clap::Command::new("beep").arg(arg!([DEVICE] "The audio device to use"));
#[cfg(all( #[cfg(all(
any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"), any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"),
feature = "jack" feature = "jack"