Mercurial > hg > dmlib
diff tools/objlink.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 | 7171aa63edb0 |
children | b111cccf45fc |
line wrap: on
line diff
--- a/tools/objlink.c Sat Nov 22 18:45:12 2014 +0200 +++ b/tools/objlink.c Sat Nov 22 18:50:07 2014 +0200 @@ -148,7 +148,8 @@ /* Arguments */ -static DMOptArg optList[] = { +static const DMOptArg optList[] = +{ { 0, '?', "help", "Show this help", OPT_NONE }, { 1, 'r', "input-raw", "RAW input: -r <file>:<addr>", OPT_ARGREQ }, { 2, 'p', "input-prg", "PRG input: -p <file>[:<addr>]", OPT_ARGREQ }, @@ -172,7 +173,7 @@ int i; dmPrintBanner(stdout, dmProgName, "[options]"); - dmArgsPrintHelp(stdout, optList, optListN); + dmArgsPrintHelp(stdout, optList, optListN, 0); printf( "\n" @@ -769,7 +770,7 @@ // Parse arguments if (!dmArgsProcess(argc, argv, optList, optListN, - argHandleOpt, NULL, TRUE)) + argHandleOpt, NULL, OPTH_BAILOUT)) exit(1); if (nsrcFiles < 1)