comparison tools/mod2wav.c @ 2567:b205c60aa657

More error handling/help stuff.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 28 Feb 2022 12:03:23 +0200
parents d56a0e86067a
children 9807ae37ad69
comparison
equal deleted inserted replaced
2566:d75431bf1a7d 2567:b205c60aa657
241 goto out; 241 goto out;
242 242
243 // Check arguments 243 // Check arguments
244 if (optInFilename == NULL || optOutFilename == NULL) 244 if (optInFilename == NULL || optOutFilename == NULL)
245 { 245 {
246 argShowHelp();
246 res = dmError(DMERR_INVALID_ARGS, 247 res = dmError(DMERR_INVALID_ARGS,
247 "Input or output file not specified.\n"); 248 "Input or output file not specified.\n");
248 goto out; 249 goto out;
249 } 250 }
250 251