diff tools/view64.c @ 860:daebbf28953d

The argument handling API in dmargs* was synced with th-libs.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 22 Nov 2014 18:50:07 +0200
parents d9888292f971
children 2270d7f3af77
line wrap: on
line diff
--- a/tools/view64.c	Sat Nov 22 18:45:12 2014 +0200
+++ b/tools/view64.c	Sat Nov 22 18:50:07 2014 +0200
@@ -18,7 +18,7 @@
 int    optForcedFormat = -1;
 
 
-static DMOptArg optList[] =
+static const DMOptArg optList[] =
 {
     { 0, '?', "help",       "Show this help", OPT_NONE },
     { 1, 'v', "verbose",    "Be more verbose", OPT_NONE },
@@ -42,7 +42,7 @@
     int i;
 
     dmPrintBanner(stdout, dmProgName, "[options] <input image file>");
-    dmArgsPrintHelp(stdout, optList, optListN);
+    dmArgsPrintHelp(stdout, optList, optListN, 0);
 
     printf("\nAvailable bitmap formats:\n");
     for (i = 0; i < ndmC64ImageFormats; i++)
@@ -169,7 +169,7 @@
 
     /* Parse arguments */
     if (!dmArgsProcess(argc, argv, optList, optListN,
-        argHandleOpt, argHandleFile, FALSE))
+        argHandleOpt, argHandleFile, OPTH_BAILOUT))
         exit(1);