Skip to content

Commit

Permalink
Use crate info for clap help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Oct 2, 2020
1 parent aa077a0 commit 7b4a4f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion helix-term/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "helix-term"
version = "0.1.0"
description = "A post-modern text editor."
authors = ["Blaž Hrastnik <[email protected]>"]
edition = "2018"

Expand All @@ -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"] }
4 changes: 1 addition & 3 deletions helix-term/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7b4a4f6

Please sign in to comment.