Update clap
This commit is contained in:
parent
a2e7c24e00
commit
f5e251fc81
2 changed files with 3 additions and 4 deletions
|
@ -15,6 +15,6 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa
|
|||
log = "0.4.14"
|
||||
nix = "0.22.1"
|
||||
libc = "0.2.101"
|
||||
clap = { version = "3.0.0-beta.4", features = ["derive"] }
|
||||
clap = { version = "3.0.0-beta.5", features = ["derive"] }
|
||||
rand_core = { version = "0.6.3", features = ["std"] }
|
||||
heapless = { version = "0.7.5", default-features = false }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
use clap::{AppSettings, Clap};
|
||||
use clap::Parser;
|
||||
use embassy::executor::{Executor, Spawner};
|
||||
use embassy::io::AsyncWriteExt;
|
||||
use embassy::util::Forever;
|
||||
|
@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever<StaticConfigurator> = Forever::new();
|
|||
static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new();
|
||||
static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new();
|
||||
|
||||
#[derive(Clap)]
|
||||
#[derive(Parser)]
|
||||
#[clap(version = "1.0")]
|
||||
#[clap(setting = AppSettings::ColoredHelp)]
|
||||
struct Opts {
|
||||
/// TAP device name
|
||||
#[clap(long, default_value = "tap0")]
|
||||
|
|
Loading…
Reference in a new issue