|
From: <kin...@us...> - 2025-09-30 16:24:59
|
Revision: 7541
http://sourceforge.net/p/teem/code/7541
Author: kindlmann
Date: 2025-09-30 16:24:58 +0000 (Tue, 30 Sep 2025)
Log Message:
-----------
still working on debugging hestParse2
Modified Paths:
--------------
teem/trunk/src/hest/test/tparse.c
Modified: teem/trunk/src/hest/test/tparse.c
===================================================================
--- teem/trunk/src/hest/test/tparse.c 2025-09-30 15:46:48 UTC (rev 7540)
+++ teem/trunk/src/hest/test/tparse.c 2025-09-30 16:24:58 UTC (rev 7541)
@@ -62,18 +62,29 @@
unsigned int sawC;
hestOptAdd_Nv_Int(&opt, NULL, "C C", 1, 2, &unpC, NULL, "unflagged C", &sawC);
*/
+ char **kinds;
+ unsigned int kindsLen;
+ hestOptAdd_Nv_String(&opt, "k,kind", "k0 k1", 1, -1, &kinds, "boo",
+ "what \"kind\" is each axis, from the nrrdKind airEnum "
+ "(e.g. space, time, 3-vector, 3D-masked-symmetric-matrix, "
+ "or \"none\" to signify no kind)",
+ &kindsLen);
+
char *err = NULL;
if (hestParse2(opt, argc - 1, argv + 1, &err, hparm)) {
fprintf(stderr, "%s: problem:\n%s\n", argv[0], err);
free(err);
ret = 1;
+ } else {
+ if (opt->helpWanted) {
+ printf("\n\n%s: help wanted!\n\n\n", argv[0]);
+ }
+ for (unsigned int ki = 0; ki < kindsLen; ki++) {
+ printf("kind[%u] = |%s|\n", ki, kinds[ki]);
+ }
+
+ hestOptFree(opt);
+ hestParmFree(hparm);
}
- if (opt->helpWanted) {
- printf("\n\n%s: help wanted!\n\n\n", argv[0]);
- }
-
- hestOptFree(opt);
- hestParmFree(hparm);
-
exit(ret);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|