enh: detect arguments errors

This commit is contained in:
Stéphane Lesimple 2022-01-02 18:08:24 +01:00
parent e3ca15264d
commit d3c183965f

View file

@ -97,7 +97,7 @@ GetOptions(
'p|profile=s' => \my $opt_profile,
'r|raw' => \my $opt_raw,
'btrfs-binary=s' => \my $opt_btrfs_binary,
);
) or die "FATAL: Error parsing arguments, aborting\n";
sub debug {
return if !$opt_debug;