Merge pull request #281 from polluks/sp65
sp65: A forgotten option. Empty arguments are not silent anymore.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user