Mercurial > hg > Members > anatofuz > ie-virsh
changeset 53:28adbde55fe7
use crate_version
author | AnaTofuZ <k198584@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 23 Nov 2020 09:29:39 +0900 |
parents | 883ae1fc1644 |
children | ab3350def09b |
files | src/main.rs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.rs Mon Nov 23 09:20:46 2020 +0900 +++ b/src/main.rs Mon Nov 23 09:29:39 2020 +0900 @@ -1,8 +1,8 @@ -use clap::Clap; +use clap::{crate_version, Clap}; use ie_virsh::{command, user}; #[derive(Clap)] -#[clap(version = "1.0", author = "AnaTofuZ <anatofuz@cr.ie.u-ryukyu.ac.jp>")] +#[clap(version = crate_version!(), author = "AnaTofuZ <anatofuz@cr.ie.u-ryukyu.ac.jp>")] struct Opts { #[clap(subcommand)] subcmd: SubCommand,