Use crate info for clap help text.

This commit is contained in:
Blaž Hrastnik 2020-10-02 18:16:43 +09:00
parent aa077a07f3
commit 7b4a4f6a3c
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,7 @@
[package]
name = "helix-term"
version = "0.1.0"
description = "A post-modern text editor."
authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
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"] }

View File

@ -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")