From 7b4a4f6a3cec10f7b2d4a406cc68b5929b36b0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 2 Oct 2020 18:16:43 +0900 Subject: [PATCH] Use crate info for clap help text. --- helix-term/Cargo.toml | 3 ++- helix-term/src/main.rs | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 82eeb3452..ed5460905 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "helix-term" version = "0.1.0" +description = "A post-modern text editor." authors = ["Blaž Hrastnik "] edition = "2018" @@ -21,4 +22,4 @@ num_cpus = "1.13" # tui = { version = "0.12", default-features = false, features = ["crossterm"] } tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"] } crossterm = { version = "0.18", features = ["event-stream"] } -clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std"] } +clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std", "cargo"] } diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index eeb498bcc..f5af9175f 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -12,9 +12,7 @@ use anyhow::Error; static EX: smol::Executor = smol::Executor::new(); fn main() -> Result<(), Error> { - let args = App::new("helix") - .version("0.1") - .about("A post-modern text editor.") + let args = clap::app_from_crate!() .arg( Arg::new("files") .about("Sets the input file to use")