Merge pull request #281 from polluks/sp65

sp65: A forgotten option. Empty arguments are not silent anymore.
This commit is contained in:
Oliver Schmidt
2016-04-10 21:13:02 +02:00
2 changed files with 14 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ static void Usage (void)
"\n"
"Long options:\n"
" --convert-to fmt[,attrlist]\tConvert into target format\n"
" --dump-palette\t\tDump palette as table\n"
" --help\t\t\tHelp (this text)\n"
" --list-conversions\t\tList all possible conversions\n"
" --pop\t\t\t\tRestore the original loaded image\n"
@@ -273,7 +274,7 @@ static void OptSlice (const char* Opt attribute ((unused)), const char* Arg)
static void OptVerbose (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
/* Increase versbosity */
/* Increase verbosity */
{
++Verbosity;
}
@@ -397,6 +398,11 @@ int main (int argc, char* argv [])
++I;
}
/* Do we have an input file? */
if (I == 1) {
Error ("No input file");
}
/* Cleanup data */
SetWorkBitmap (C);
FreeBitmap (B);