on master help sign in
Use crate info for clap help text.
7b4a4f6Blaž Hrastnik
helix-term/Cargo.toml+2−1
@@ -1,6 +1,7 @@
1[package]
1[package]
2name = "helix-term"
2name = "helix-term"
3version = "0.1.0"
3version = "0.1.0"
4+description = "A post-modern text editor."
4authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
5authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
5edition = "2018"
6edition = "2018"
6
7
@@ -21,4 +22,4 @@ num_cpus = "1.13"
21# tui = { version = "0.12", default-features = false, features = ["crossterm"] }
22# tui = { version = "0.12", default-features = false, features = ["crossterm"] }
22tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"] }
23tui = { git = "https://github.com/fdehau/tui-rs", default-features = false, features = ["crossterm"] }
23crossterm = { version = "0.18", features = ["event-stream"] }
24crossterm = { 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;
12static EX: smol::Executor = smol::Executor::new();
12static EX: smol::Executor = smol::Executor::new();
13
13
14fn main() -> Result<(), Error> {
14fn main() -> Result<(), Error> {
15− let args = App::new("helix")
15+ let args = clap::app_from_crate!()
16− .version("0.1")
17− .about("A post-modern text editor.")
18 .arg(
16 .arg(
19 Arg::new("files")
17 Arg::new("files")
20 .about("Sets the input file to use")
18 .about("Sets the input file to use")