specify max tag depth (default: 15)
[id3fs.git] / sbin / id3fsd
index 8331e13..b46706a 100755 (executable)
@@ -14,12 +14,14 @@ our $VERSION="1.00";
 my $verbose=0;
 my $help=0;
 my $dbpath=undef;
+my $tagdepth=undef;
 
 Configure(qw(bundling no_ignore_case));
 my $optret=GetOptions(
     "verbose|v"    => sub { $verbose++; },
     "help|h"       => \$help,
     "database|f=s" => \$dbpath,
+    "t|tagdepth=s" => \$tagdepth,
     );
 
 usage() if(scalar(@ARGV) != 2 || !$optret || $help);
@@ -30,7 +32,7 @@ my $mountpoint=shift;
 my $db=ID3FS::DB->new($me, $verbose, 0, $dbpath, $source);
 exit unless($db);
 
-my $fuse=ID3FS::Fuse->new($db, $source, $mountpoint, $verbose);
+my $fuse=ID3FS::Fuse->new($db, $source, $mountpoint, $verbose, $tagdepth);
 $fuse->run();
 
 sub usage