added deprecation warning for removed force-prune

This commit is contained in:
Christoph Klaffl 2024-06-04 08:40:41 +02:00
parent 7ba73acea9
commit cf0ecb30ae
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 5 additions and 1 deletions

6
sanoid
View File

@ -25,7 +25,7 @@ my %args = (
GetOptions(\%args, "verbose", "debug", "cron", "readonly", "quiet",
"configdir=s", "cache-dir=s", "run-dir=s",
"monitor-health", "force-update",
"monitor-snapshots", "take-snapshots", "prune-snapshots",
"monitor-snapshots", "take-snapshots", "prune-snapshots", "force-prune",
"monitor-capacity"
) or pod2usage(2);
@ -54,6 +54,10 @@ make_path($run_dir);
my $cacheTTL = 1200; # 20 minutes
if ($args{'force-prune'}) {
warn "WARN: --force-prune argument is deprecated and its behavior is now standard";
}
# Allow a much older snapshot cache file than default if _only_ "--monitor-*" action commands are given
# (ignore "--verbose", "--configdir" etc)
if (