|
From: <kin...@us...> - 2025-09-24 06:06:47
|
Revision: 7480
http://sourceforge.net/p/teem/code/7480
Author: kindlmann
Date: 2025-09-24 06:06:44 +0000 (Wed, 24 Sep 2025)
Log Message:
-----------
bug fix
Modified Paths:
--------------
teem/trunk/src/hest/parsest.c
Modified: teem/trunk/src/hest/parsest.c
===================================================================
--- teem/trunk/src/hest/parsest.c 2025-09-24 05:55:55 UTC (rev 7479)
+++ teem/trunk/src/hest/parsest.c 2025-09-24 06:06:44 UTC (rev 7480)
@@ -765,10 +765,11 @@
uint optIdx = whichOptFlag(opt, havec->harg[argIdx]->str, hparm);
if (UINT_MAX == optIdx) {
// havec->harg[argIdx]->str is not a flag for any option, move on to next arg
- argIdx++;
- if (hparm->verbosity)
+ if (hparm->verbosity) {
printf("%s: |%s| not a flag arg, continue\n", __func__,
havec->harg[argIdx]->str);
+ }
+ argIdx++;
continue;
}
// else havec->harg[argIdx]->str is a flag for option with index optIdx aka theOpt
@@ -1028,6 +1029,7 @@
"%s: after handling %u unflagged opts, still have unexpected %u args "
"left in (starting with \"%s\")",
__func__, unflagNum, havec->len, havec->harg[0]->str);
+ return 1;
}
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|