Merge pull request #819 from phreaker0/fixed-default-options

fix default behaviour if run without providing arguments
This commit is contained in:
Jim Salter 2023-04-27 14:22:47 -04:00 committed by GitHub
commit c69381e5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}