python getopt functionality

Micah Elliott mde at micah.elliott.name
Mon Oct 3 15:56:06 EDT 2005


On Oct 03, M.N.A.Smadi wrote:
> It is not clear to me if i can define `mandatory' options? That sounds
> strange but let say that the command `requires ' a value for -z or
> --zoo (either or should be find but one and only one of them MUST be
> present).  Can i do that with resorting to using if statements?

Optik (optparse) adheres to a "Tao of Option Parsing"
<http://optik.sourceforge.net/doc/1.5/tao.html>, which discusses
required option arguments.

-- 
Micah Elliott



More information about the Python-list mailing list