Added warnings when files were not specified

This commit is contained in:
Jaroslav Kysela 2003-07-30 14:14:21 +00:00
parent 657e571adb
commit 131f9a23af

View file

@ -654,12 +654,16 @@ main (int argc, char **argv) {
finish_client();
return 1;
}
} else {
fprintf(stderr, "Warning: instrument file was not specified\n");
}
if (optind < argc) {
if (load_file (128, argv[optind]) < 0) {
finish_client();
return 1;
}
} else {
fprintf(stderr, "Warning: drum file was not specified\n");
}
/* Unsubscribe destination port and close client */