diff --git a/Cargo.lock b/Cargo.lock index a75995d..8dfb59b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,7 +42,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "butterup" -version = "0.1.0" +version = "1.0.0" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 8e896f0..61d4400 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "butterup" description = "Backup btrfs snapshots over SSH" -version = "0.1.0" +version = "1.0.0" authors = ["Joakim Hulthe "] license = "MPL-2.0" edition = "2018" diff --git a/src/main.rs b/src/main.rs index eef9192..79521a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; /// 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)]