From c2ccccc88f408f2cccab34b18cc397b99d0993a0 Mon Sep 17 00:00:00 2001 From: James McDonald Date: Sun, 26 Apr 2026 12:24:09 +0200 Subject: [PATCH] Allow configuring retention limit --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index fe6b08f..8461e79 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,6 +24,9 @@ struct Args { #[arg(short, long)] dry_run: bool, + #[arg(short, long)] + retain: Option, + datasets: Vec, } @@ -42,6 +45,9 @@ fn main() -> Result<(), Box> { if let Some(cmd) = args.target_zfs_command { builder = builder.target_zfs_command(&cmd); } + if let Some(retain) = args.retain { + builder = builder.retain(retain); + } let (tx, rx) = channel(); let mut pr = ProgressReporter::new(rx);