commands: set application version based on Cargo.toml

This commit is contained in:
Martin von Zweigbergk 2021-01-03 22:50:39 -08:00
parent 19adac7c50
commit 762a367174

View file

@ -25,7 +25,7 @@ use std::io::{Read, Write};
use std::process::Command;
use std::sync::Arc;
use clap::{App, Arg, ArgMatches, SubCommand};
use clap::{crate_version, App, Arg, ArgMatches, SubCommand};
use criterion::Criterion;
@ -519,7 +519,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> {
App::new("Jujube")
.global_setting(clap::AppSettings::ColoredHelp)
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
.version("0.0.1")
.version(crate_version!())
.author("Martin von Zweigbergk <martinvonz@google.com>")
.about("My source control tool")
.arg(