Clap 3.1
This commit is contained in:
parent
83b96beb44
commit
6087b05604
4 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"))
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue