on master help sign in
Use crate info for clap help text.
commit7b4a4f6a3cec10f7b2d4a406cc68b5929b36b0a1 authorBlaž Hrastnik <blaz@mxxn.io> dateFri 2 Oct 2020, 18:16 (6 years ago) parentaa077a0
2 files changed+3−4
helix-term/Cargo.toml+2−1 helix-term/src/main.rs+1−3
helix-term/Cargo.toml+2−1
@@ -1,6 +1,7 @@
11[package]
22name = "helix-term"
33version = "0.1.0"
4+description = "A post-modern text editor."
45authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
56edition = "2018"
67
@@ -21,4 +22,4 @@ num_cpus = "1.13"
2122# tui = { version = "0.12", default-features = false, features = ["crossterm"] }
2223tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"] }
2324crossterm = { version = "0.18", features = ["event-stream"] }
24−clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std"] }
25+clap = { version = "3.0.0-beta.2 ", default-features = false, features = ["std", "cargo"] }
helix-term/src/main.rs+1−3
@@ -12,9 +12,7 @@ use anyhow::Error;
1212static EX: smol::Executor = smol::Executor::new();
1313
1414fn main() -> Result<(), Error> {
15− let args = App::new("helix")
16− .version("0.1")
17− .about("A post-modern text editor.")
15+ let args = clap::app_from_crate!()
1816 .arg(
1917 Arg::new("files")
2018 .about("Sets the input file to use")