mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 15:16:35 +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::process::Command;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use clap::{App, Arg, ArgMatches, SubCommand};
|
use clap::{crate_version, App, Arg, ArgMatches, SubCommand};
|
||||||
|
|
||||||
use criterion::Criterion;
|
use criterion::Criterion;
|
||||||
|
|
||||||
|
@ -519,7 +519,7 @@ fn get_app<'a, 'b>() -> App<'a, 'b> {
|
||||||
App::new("Jujube")
|
App::new("Jujube")
|
||||||
.global_setting(clap::AppSettings::ColoredHelp)
|
.global_setting(clap::AppSettings::ColoredHelp)
|
||||||
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
|
.setting(clap::AppSettings::SubcommandRequiredElseHelp)
|
||||||
.version("0.0.1")
|
.version(crate_version!())
|
||||||
.author("Martin von Zweigbergk <martinvonz@google.com>")
|
.author("Martin von Zweigbergk <martinvonz@google.com>")
|
||||||
.about("My source control tool")
|
.about("My source control tool")
|
||||||
.arg(
|
.arg(
|
||||||
|
|
Loading…
Reference in a new issue