Update clap

This commit is contained in:
Dario Nieuwenhuis 2021-10-18 01:19:01 +02:00
parent a2e7c24e00
commit f5e251fc81
2 changed files with 3 additions and 4 deletions

View File

@ -15,6 +15,6 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa
log = "0.4.14" log = "0.4.14"
nix = "0.22.1" nix = "0.22.1"
libc = "0.2.101" 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"] } rand_core = { version = "0.6.3", features = ["std"] }
heapless = { version = "0.7.5", default-features = false } heapless = { version = "0.7.5", default-features = false }

View File

@ -1,6 +1,6 @@
#![feature(type_alias_impl_trait)] #![feature(type_alias_impl_trait)]
use clap::{AppSettings, Clap}; use clap::Parser;
use embassy::executor::{Executor, Spawner}; use embassy::executor::{Executor, Spawner};
use embassy::io::AsyncWriteExt; use embassy::io::AsyncWriteExt;
use embassy::util::Forever; use embassy::util::Forever;
@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever<StaticConfigurator> = Forever::new();
static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new(); static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new();
static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new(); static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new();
#[derive(Clap)] #[derive(Parser)]
#[clap(version = "1.0")] #[clap(version = "1.0")]
#[clap(setting = AppSettings::ColoredHelp)]
struct Opts { struct Opts {
/// TAP device name /// TAP device name
#[clap(long, default_value = "tap0")] #[clap(long, default_value = "tap0")]