mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Merge pull request #281 from polluks/sp65
sp65: A forgotten option. Empty arguments are not silent anymore.
This commit is contained in:
commit
e809d6bf0d
@ -49,6 +49,7 @@ Short options:
|
||||
|
||||
Long options:
|
||||
--convert-to fmt[,attrlist] Convert into target format
|
||||
--dump-palette Dump palette as table
|
||||
--help Help (this text)
|
||||
--list-conversions List all possible conversions
|
||||
--pop Restore the original loaded image
|
||||
@ -76,6 +77,12 @@ attribute lists see <ref id="attr-lists" name="below">.
|
||||
see section <ref id="conversions" name="Conversions">.
|
||||
|
||||
|
||||
<label id="option--dump-palette">
|
||||
<tag><tt>--dump-palette</tt></tag>
|
||||
|
||||
Dump palette as table.
|
||||
|
||||
|
||||
<label id="option--help">
|
||||
<tag><tt>-h, --help</tt></tag>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user