python getopt functionality

Micah Elliott mde at
Mon Oct 3 21:56:06 CEST 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"
<>, which discusses
required option arguments.

Micah Elliott

More information about the Python-list mailing list