Skip to content

Commit fe28239

Browse files
committed
use Cargo env variables in clap
1 parent 3d18e1d commit fe28239

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tmc-langs-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "tmc-langs-cli"
33
version = "0.1.0"
44
authors = ["Daniel Martinez <daniel.x.martinez@helsinki.fi>"]
55
edition = "2018"
6+
description = "CLI client for TMC"
67

78
[dependencies]
89
tmc-langs-core = { path = "../tmc-langs-core" }

tmc-langs-cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ use walkdir::WalkDir;
1717
fn main() {
1818
env_logger::init();
1919

20-
let matches = App::new("TestMyCode")
21-
.version("0.1.0")
22-
.author("Daniel Martinez <daniel.x.martinez@helsinki.fi")
23-
.about("CLI client for TMC")
20+
let matches = App::new(env!("CARGO_PKG_NAME"))
21+
.version(env!("CARGO_PKG_VERSION"))
22+
.author(env!("CARGO_PKG_AUTHORS"))
23+
.about(env!("CARGO_PKG_DESCRIPTION"))
2424

2525
.subcommand(SubCommand::with_name("checkstyle")
2626
.about("Run checkstyle or similar plugin to project if applicable.")

0 commit comments

Comments
 (0)