Update structopt to 0.3
This commit is contained in:
1 parent
4f08d010b7
commit
a1b9d04709
3 files changed
+77
-41
No files matched your search
Generated
+57
-7
@@ -2148,6 +2148,32 @@ dependencies = [
|
||||
"log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro-error"
|
||||
version = "0.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1b79a464461615532fcc8a6ed8296fa66cc12350c18460ab3f4594a6cee0fcb6"
|
||||
dependencies = [
|
||||
"proc-macro-error-attr",
|
||||
"proc-macro2 1.0.8",
|
||||
"quote 1.0.2",
|
||||
"rustversion",
|
||||
"syn 1.0.14",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro-error-attr"
|
||||
version = "0.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "23832e5eae6bac56bbac190500eef1aaede63776b5cd131eaa4ee7fe120cd892"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.8",
|
||||
"quote 1.0.2",
|
||||
"rustversion",
|
||||
"syn 1.0.14",
|
||||
"syn-mid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro-hack"
|
||||
version = "0.5.11"
|
||||
@@ -2469,6 +2495,17 @@ dependencies = [
|
||||
"stb_truetype",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustversion"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b3bba175698996010c4f6dce5e7f173b6eb781fce25d2cfc45e27091ce0b79f6"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.8",
|
||||
"quote 1.0.2",
|
||||
"syn 1.0.14",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.2"
|
||||
@@ -2767,24 +2804,26 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
||||
|
||||
[[package]]
|
||||
name = "structopt"
|
||||
version = "0.2.18"
|
||||
version = "0.3.8"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "16c2cdbf9cc375f15d1b4141bc48aeef444806655cd0e904207edc8d68d86ed7"
|
||||
checksum = "df136b42d76b1fbea72e2ab3057343977b04b4a2e00836c3c7c0673829572713"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"lazy_static",
|
||||
"structopt-derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "structopt-derive"
|
||||
version = "0.2.18"
|
||||
version = "0.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "53010261a84b37689f9ed7d395165029f9cc7abb9f56bbfe86bee2597ed25107"
|
||||
checksum = "fd50a87d2f7b8958055f3e73a963d78feaccca3836767a9069844e34b5b03c0a"
|
||||
dependencies = [
|
||||
"heck",
|
||||
"proc-macro2 0.4.30",
|
||||
"quote 0.6.13",
|
||||
"syn 0.15.44",
|
||||
"proc-macro-error",
|
||||
"proc-macro2 1.0.8",
|
||||
"quote 1.0.2",
|
||||
"syn 1.0.14",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2836,6 +2875,17 @@ dependencies = [
|
||||
"unicode-xid 0.2.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn-mid"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9fd3937748a7eccff61ba5b90af1a20dbf610858923a9192ea0ecb0cb77db1d0"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.8",
|
||||
"quote 1.0.2",
|
||||
"syn 1.0.14",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "synom"
|
||||
version = "0.11.3"
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ ratelimit_meter = "5.0"
|
||||
serde = {version="1.0", features = ["rc", "derive"]}
|
||||
serial = "0.4"
|
||||
ssh2 = "0.7"
|
||||
structopt = "0.2"
|
||||
structopt = "0.3"
|
||||
tabout = { path = "tabout" }
|
||||
term = { path = "term" }
|
||||
termwiz = { path = "termwiz"}
|
||||
|
||||
+19
-33
@@ -57,11 +57,11 @@ fn wezterm_version() -> &'static str {
|
||||
}
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
#[structopt(about = "Wez's Terminal Emulator\nhttp://github.com/wez/wezterm")]
|
||||
#[structopt(raw(
|
||||
global_setting = "structopt::clap::AppSettings::ColoredHelp",
|
||||
version = r#"wezterm_version()"#,
|
||||
))]
|
||||
#[structopt(
|
||||
about = "Wez's Terminal Emulator\nhttp://github.com/wez/wezterm",
|
||||
global_setting = structopt::clap::AppSettings::ColoredHelp,
|
||||
version = wezterm_version()
|
||||
)]
|
||||
struct Opt {
|
||||
/// Skip loading ~/.wezterm.toml
|
||||
#[structopt(short = "n")]
|
||||
@@ -75,37 +75,29 @@ struct Opt {
|
||||
struct StartCommand {
|
||||
#[structopt(
|
||||
long = "front-end",
|
||||
raw(
|
||||
possible_values = "&FrontEndSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FrontEndSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
front_end: Option<FrontEndSelection>,
|
||||
|
||||
#[structopt(
|
||||
long = "font-locator",
|
||||
raw(
|
||||
possible_values = "&FontLocatorSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FontLocatorSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
font_locator: Option<FontLocatorSelection>,
|
||||
|
||||
#[structopt(
|
||||
long = "font-rasterizer",
|
||||
raw(
|
||||
possible_values = "&FontRasterizerSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FontRasterizerSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
font_rasterizer: Option<FontRasterizerSelection>,
|
||||
|
||||
#[structopt(
|
||||
long = "font-shaper",
|
||||
raw(
|
||||
possible_values = "&FontShaperSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FontShaperSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
font_shaper: Option<FontShaperSelection>,
|
||||
|
||||
@@ -169,10 +161,8 @@ enum CliSubCommand {
|
||||
struct SshCommand {
|
||||
#[structopt(
|
||||
long = "front-end",
|
||||
raw(
|
||||
possible_values = "&FrontEndSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FrontEndSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
front_end: Option<FrontEndSelection>,
|
||||
|
||||
@@ -195,10 +185,8 @@ struct SshCommand {
|
||||
struct SerialCommand {
|
||||
#[structopt(
|
||||
long = "front-end",
|
||||
raw(
|
||||
possible_values = "&FrontEndSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FrontEndSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
front_end: Option<FrontEndSelection>,
|
||||
|
||||
@@ -217,10 +205,8 @@ struct SerialCommand {
|
||||
struct ConnectCommand {
|
||||
#[structopt(
|
||||
long = "front-end",
|
||||
raw(
|
||||
possible_values = "&FrontEndSelection::variants()",
|
||||
case_insensitive = "true"
|
||||
)
|
||||
possible_values = &FrontEndSelection::variants(),
|
||||
case_insensitive = true
|
||||
)]
|
||||
front_end: Option<FrontEndSelection>,
|
||||
|
||||
|
||||
Reference in new issue
Block a user