|
From: <kin...@us...> - 2025-09-28 08:18:45
|
Revision: 7506
http://sourceforge.net/p/teem/code/7506
Author: kindlmann
Date: 2025-09-28 08:18:42 +0000 (Sun, 28 Sep 2025)
Log Message:
-----------
testing
Modified Paths:
--------------
teem/trunk/src/hest/methodsHest.c
teem/trunk/src/hest/test/ex6.c
Modified: teem/trunk/src/hest/methodsHest.c
===================================================================
--- teem/trunk/src/hest/methodsHest.c 2025-09-28 08:06:12 UTC (rev 7505)
+++ teem/trunk/src/hest/methodsHest.c 2025-09-28 08:18:42 UTC (rev 7506)
@@ -92,10 +92,6 @@
#define _PARSE_1_BODY(typstr, format) \
if (!(out && str && hpp)) return 1; \
int ret = (1 != airSingleSscanf(str, format, out)); \
- if (!strcmp("parseSingleI", __func__)) { \
- printf("!%s: sscanf(|%s|, %s, %p)-> (ret=%d) %d\n", __func__, str, format, out, \
- ret, *((int *)out)); \
- } \
if (ret) { \
snprintf(hpp->err, AIR_STRLEN_HUGE + 1, "couldn't parse \"%s\" as", typstr); \
} else { \
Modified: teem/trunk/src/hest/test/ex6.c
===================================================================
--- teem/trunk/src/hest/test/ex6.c 2025-09-28 08:06:12 UTC (rev 7505)
+++ teem/trunk/src/hest/test/ex6.c 2025-09-28 08:18:42 UTC (rev 7506)
@@ -380,7 +380,17 @@
hestOptAdd_Nv_Other(&opt, "qv", "quat1", 1, -1, &qv, "12.34 43.21",
"test of hestOptAdd_Nv_Other B", &qvSaw, &quatCB);
#endif
- hestParse2(opt, argc - 1, argv + 1, NULL, hparm);
+ if (hestParse2(opt, argc - 1, argv + 1, NULL, hparm)) {
+ // have already fprintf'd to stderr
+ hestUsage(stderr, opt, argv[0], hparm);
+ hestOptFree(opt);
+ exit(0);
+ }
+ if (opt->helpWanted) {
+ hestGlossary(stdout, opt, hparm);
+ hestOptFree(opt);
+ exit(0);
+ }
/*
hestParseOrDie(opt, argc - 1, argv + 1, hparm, argv[0], info, AIR_TRUE, AIR_TRUE,
AIR_TRUE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|