Skip to content

Commit

Permalink
[Ninan|Dinesh] Use cargo crate version for binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshba committed Aug 20, 2019
1 parent a324121 commit 13c1a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate colored;
extern crate git2;
extern crate walkdir;

use clap::{App, AppSettings};
use clap::{crate_version, App, AppSettings};

mod input_args;
mod status;
Expand All @@ -16,7 +16,7 @@ mod git;
fn main() {
let app = App::new("Git Governance")
.setting(AppSettings::ArgRequiredElseHelp)
.version("1.0")
.version(crate_version!())
.subcommand(status::sub_command())
.subcommand(create::sub_command())
.subcommand(fetch::sub_command());
Expand Down

0 comments on commit 13c1a47

Please sign in to comment.