diff --git a/Cargo.toml b/Cargo.toml index 644d85ed9..02f694e83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ ratelimit_meter = "4.1" rayon = "1.0" serde = {version="1.0", features = ["rc"]} serde_derive = "1.0" -structopt = "0.2.17" +structopt = "0.2" tabout = { path = "tabout" } term = { path = "term" } termwiz = { path = "termwiz"} @@ -100,10 +100,6 @@ core-text = "13.2" force-glutin = [] force-fontconfig = ["fontconfig"] -[patch.crates-io] -# This allows using the git version in the help output -structopt-derive = { git = "https://github.com/wez/structopt", branch="vergen" } - [workspace] [profile.release] diff --git a/src/main.rs b/src/main.rs index 5dfa406d0..9917a9065 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,10 @@ fn get_shell() -> Result { #[derive(Debug, StructOpt)] #[structopt(about = "Wez's Terminal Emulator\nhttp://github.com/wez/wezterm")] -#[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] +#[structopt(raw( + global_setting = "structopt::clap::AppSettings::ColoredHelp", + version = r#"env!("VERGEN_SEMVER_LIGHTWEIGHT")"#, +))] struct Opt { /// Skip loading ~/.wezterm.toml #[structopt(short = "n")] @@ -111,11 +114,9 @@ struct StartCommand { #[derive(Debug, StructOpt, Clone)] enum SubCommand { #[structopt(name = "start", about = "Start a front-end")] - #[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] Start(StartCommand), #[structopt(name = "cli", about = "Interact with experimental mux server")] - #[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] Cli(CliCommand), } @@ -128,7 +129,6 @@ struct CliCommand { #[derive(Debug, StructOpt, Clone)] enum CliSubCommand { #[structopt(name = "list", about = "list windows and tabs")] - #[structopt(raw(setting = "structopt::clap::AppSettings::ColoredHelp"))] List, }