[Nice-commit] Nice/stdlib/nice/getopt getopt.nice,1.21,1.22
Brought to you by:
bonniot
From: Bryn K. <xo...@us...> - 2004-05-21 17:01:19
|
Update of /cvsroot/nice/Nice/stdlib/nice/getopt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31864/stdlib/nice/getopt Modified Files: getopt.nice Log Message: Updated getopt to use the 'search' function, since 'find' now throws an exception when the item isn't in the list. Index: getopt.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/getopt/getopt.nice,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** getopt.nice 29 Jul 2003 00:22:07 -0000 1.21 --- getopt.nice 21 May 2004 17:01:08 -0000 1.22 *************** *** 52,56 **** while (c != noOptionsLeft) { ! ?Option chosen = options.find(Option o => o.optval == c); if (chosen != null) chosen.doAction(g); --- 52,56 ---- while (c != noOptionsLeft) { ! ?Option chosen = options.search(Option o => o.optval == c); if (chosen != null) chosen.doAction(g); |