From 7b4a4f6a3cec10f7b2d4a406cc68b5929b36b0a1 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 2 Oct 2020 18:16:43 +0900 Subject: Use crate info for clap help text. --- helix-term/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index eeb498bc..f5af9175 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") -- cgit v1.2.3-70-g09d2