A forgotten option. Empty arguments are not silent anymore.
This commit is contained in:
parent
fe023a1218
commit
7f06405bdb
2 changed files with 14 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue