From: Stephen D. <sd...@gm...> - 2005-02-28 07:25:28
|
I was thinking about making the Ns_ObjvBool proc look at it's arg, and if present, place that in the destination pointer and not consume an object from the objv array. The presence of the option (without argument) alone would signify true, it's absence false. Then I realised I left out the short-circuit logic... When a -- (break) arg is found the options are assumed to have ended and we jump to arg processing. The signal for this is that the Ns_ObjvBreak proc returns exactly objc. But that's really what the Bool proc should return in the case described above when it doesn't consume an arg. Unfortunately it's not as simple as that. The "wrong num args" description needs to know that the option takes no argument too. Any thoughts? |