mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #508 from phreaker0/check-arguments
check for an invalid argument combination
This commit is contained in:
commit
14e6c62d0a
10
syncoid
10
syncoid
|
|
@ -38,6 +38,16 @@ if (length $args{'sendoptions'}) {
|
|||
pod2usage(2);
|
||||
exit 127;
|
||||
}
|
||||
|
||||
if (defined $args{'recursive'}) {
|
||||
foreach my $option(@sendoptions) {
|
||||
if ($option->{option} eq 'R') {
|
||||
warn "invalid argument combination, zfs send -R and --recursive aren't compatible!";
|
||||
pod2usage(2);
|
||||
exit 127;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
my @recvoptions = ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue