A forgotten option. Empty arguments are not silent anymore.
This commit is contained in:
@@ -49,6 +49,7 @@ Short options:
|
|||||||
|
|
||||||
Long options:
|
Long options:
|
||||||
--convert-to fmt[,attrlist] Convert into target format
|
--convert-to fmt[,attrlist] Convert into target format
|
||||||
|
--dump-palette Dump palette as table
|
||||||
--help Help (this text)
|
--help Help (this text)
|
||||||
--list-conversions List all possible conversions
|
--list-conversions List all possible conversions
|
||||||
--pop Restore the original loaded image
|
--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">.
|
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">
|
<label id="option--help">
|
||||||
<tag><tt>-h, --help</tt></tag>
|
<tag><tt>-h, --help</tt></tag>
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ static void Usage (void)
|
|||||||
"\n"
|
"\n"
|
||||||
"Long options:\n"
|
"Long options:\n"
|
||||||
" --convert-to fmt[,attrlist]\tConvert into target format\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"
|
" --help\t\t\tHelp (this text)\n"
|
||||||
" --list-conversions\t\tList all possible conversions\n"
|
" --list-conversions\t\tList all possible conversions\n"
|
||||||
" --pop\t\t\t\tRestore the original loaded image\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)),
|
static void OptVerbose (const char* Opt attribute ((unused)),
|
||||||
const char* Arg attribute ((unused)))
|
const char* Arg attribute ((unused)))
|
||||||
/* Increase versbosity */
|
/* Increase verbosity */
|
||||||
{
|
{
|
||||||
++Verbosity;
|
++Verbosity;
|
||||||
}
|
}
|
||||||
@@ -397,6 +398,11 @@ int main (int argc, char* argv [])
|
|||||||
++I;
|
++I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do we have an input file? */
|
||||||
|
if (I == 1) {
|
||||||
|
Error ("No input file");
|
||||||
|
}
|
||||||
|
|
||||||
/* Cleanup data */
|
/* Cleanup data */
|
||||||
SetWorkBitmap (C);
|
SetWorkBitmap (C);
|
||||||
FreeBitmap (B);
|
FreeBitmap (B);
|
||||||
|
|||||||
Reference in New Issue
Block a user