disallow --skip in test mode

This commit is contained in:
Josh Coalson 2001-01-13 00:23:44 +00:00
parent 8a0ab31fab
commit 9c18548a50

View File

@ -196,7 +196,11 @@ int main(int argc, char *argv[])
}
}
else {
if(!test_only) {
if(test_only) {
if(skip > 0)
return usage("ERROR: --skip is not allowed in test mode\n");
}
else {
if(format_is_wave < 0) {
if(strstr(argv[i+1], ".wav") == argv[i+1] + (strlen(argv[i+1]) - strlen(".wav")))
format_is_wave = true;