From 5c787d75b3f5d6ae314b1e0f5777a57d44fcf052 Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Wed, 11 May 2022 11:08:26 +0200 Subject: [PATCH] src/main.rs: add update flag --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 29c4426..12d821a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,8 @@ struct Commit { /// The compression used to save the results folder (no, lz4, zstd, zlib or lzma) #[clap(short, long, default_value = "lz4")] compression: String, + #[clap(takes_value = false, short, long)] + update: bool, } #[derive(Debug, Args)] @@ -58,7 +60,7 @@ fn main() { init::init_repository(); } Commands::Commit(commit) => { - commit::commit(commit.compression, String::from("")); + commit::commit(commit.compression, String::from(""), commit.update); } Commands::List(list) => { list::borg_list(list.first, list.last, &list.archive); -- GitLab