Skip to content

Commit 13c1a47

Browse files
committed
[Ninan|Dinesh] Use cargo crate version for binary
1 parent a324121 commit 13c1a47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate colored;
55
extern crate git2;
66
extern crate walkdir;
77

8-
use clap::{App, AppSettings};
8+
use clap::{crate_version, App, AppSettings};
99

1010
mod input_args;
1111
mod status;
@@ -16,7 +16,7 @@ mod git;
1616
fn main() {
1717
let app = App::new("Git Governance")
1818
.setting(AppSettings::ArgRequiredElseHelp)
19-
.version("1.0")
19+
.version(crate_version!())
2020
.subcommand(status::sub_command())
2121
.subcommand(create::sub_command())
2222
.subcommand(fetch::sub_command());

0 commit comments

Comments
 (0)