Try to infer library from path

This commit is contained in:
Aaro Altonen 2020-05-01 15:21:38 +03:00
parent 997924c111
commit f29918602c
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ GetOptions(
"help" => \(my $help = 0)
) or die "failed to parse command line!\n";
if (!$lib and $path =~ m/.*(uvgrtp|ffmpeg|gstreamer).*/i) {
$lib = $1;
}
if ($help or !$lib or !$iter) {
print "usage (one file):\n ./parse.pl \n"
. "\t--lib <uvgrtp|ffmpeg|gstreamer>\n"