changeset 104:bc82df7f6bbe

More command line args fixing
author lost@l-w.ca
date Sat, 06 Aug 2011 22:50:54 -0600
parents 8b0be0fc42cf
children 3e9057059a43
files lwlib/lw_cmdline.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lw_cmdline.c	Sat Aug 06 22:35:58 2011 -0600
+++ b/lwlib/lw_cmdline.c	Sat Aug 06 22:50:54 2011 -0600
@@ -455,7 +455,10 @@
 			
 			/* move on to next argument if we have an arg specified */
 			if (tstr && cch && argv[i][cch] != 0)
+			{
 				i++;
+				cch = 0;
+			}
 			
 			if (!tstr && (parser -> options[j].flags & lw_cmdline_opt_optional) == 0)
 			{