On Fri, Oct 9, 2009 at 8:51 AM, Jonathan Ballet <[email protected]> wrote: > If I want this option to have an optional value, I think I must set a > default value to the option. But then, how to make the distinction > between the two first cases? I might miss something I don't know in > option parsing, but I didn't find anything...
I'd try the same approach as default options in Python functions. Make the default None (which isn't a valid seed) and then you can tell the difference. -- Benji York Senior Software Engineer Zope Corporation _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
