fix default behaviour if run without providing arguments

This commit is contained in:
Christoph Klaffl 2023-04-26 19:47:49 +02:00
parent e6585e7ee5
commit cc495183af
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 1 additions and 1 deletions

2
sanoid
View File

@ -30,7 +30,7 @@ GetOptions(\%args, "verbose", "debug", "cron", "readonly", "quiet",
) or pod2usage(2);
# If only config directory (or nothing) has been specified, default to --cron --verbose
if (keys %args < 2) {
if (keys %args < 4) {
$args{'cron'} = 1;
$args{'verbose'} = 1;
}