Merge pull request #643 from remilauzier/master

Clap 3.1
This commit is contained in:
est31 2022-02-18 20:10:12 +01:00 • committed by GitHub
commit 1d9bb5bd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"