Show version in cli

This commit is contained in:
2021-10-19 18:00:18 +02:00
parent 905452e91b
commit 37498f5b33
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ mod util;
use actions::{list, show_plan, sync};
use chrono::{DateTime, FixedOffset};
use clap::{AppSettings, Clap};
use clap::{crate_version, AppSettings, Clap};
use remote::Remote;
use std::collections::BTreeMap;
use std::path::PathBuf;
@ -20,7 +20,7 @@ pub type FileList = BTreeMap<TimeStamp, String>;
/// Backup btrfs snapshots over SSH
#[derive(Clap)]
#[clap(setting = AppSettings::ColoredHelp)]
#[clap(version = crate_version!(), setting = AppSettings::ColoredHelp)]
pub struct Opt {
/// The path of the backup directory on the local filesystem
#[clap(short = 'l', long)]