mirror of
https://github.com/martinvonz/jj.git
synced 2024-11-28 00:56:57 +00:00
commands: set application version based on Cargo.toml
This commit is contained in:
parent
19adac7c50
commit
762a367174
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue