Show version in cli
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -42,7 +42,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||
|
||||
[[package]]
|
||||
name = "butterup"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"chrono",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "butterup"
|
||||
description = "Backup btrfs snapshots over SSH"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
|
||||
license = "MPL-2.0"
|
||||
edition = "2018"
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user