diff --git a/tools/songdb.pl b/tools/songdb.pl index a9fc78ee4a..8657e88b52 100755 --- a/tools/songdb.pl +++ b/tools/songdb.pl @@ -10,6 +10,7 @@ my $db = "rockbox.id3db"; my $dir; my $strip; +my $add; my $verbose; my $help; my $dirisalbum; @@ -31,6 +32,11 @@ while($ARGV[0]) { shift @ARGV; shift @ARGV; } + elsif($ARGV[0] eq "--add") { + $add = $ARGV[1]; + shift @ARGV; + shift @ARGV; + } elsif($ARGV[0] eq "--verbose") { $verbose = 1; shift @ARGV; @@ -66,7 +72,7 @@ my $dbver = 2; if(! -d $dir or $help) { print "'$dir' is not a directory\n" if ($dir ne "" and ! -d $dir); - print "songdb --path