[Python-Dev] getopt helper?

Fredrik Lundh fredrik@pythonware.com
Thu, 30 Sep 1999 16:18:15 +0200

> I personally liked the idea of getoptex() best, except I would call it 
> getopt_or_die().  If the usage message is omitted it can synthesize
> one from the (short and long) options arguments and sys.argv[0] (the
> latter being a bit controversial, but it's just a default).
> Hmm...  Perhaps getopt_or_die() shouldn't take the args argument but
> extract sys.argv[1:] itself?

sounds reasonable.  what are you waiting for ;-)