Help with optionparse recipe

Stephen Boulet at
Tue Jul 27 15:40:01 CEST 2004

Michele Simionato wrote:

> It is the docstring. Try with this:
> """An example script invoking optionparse, my wrapper around optparse.
> usage: %prog [options] args
> -f, --file=FILE: file to attach
> -s, --subject=SUBJECT: email subject
> -a, --address=ADDRESS: email address
> """




If your desktop gets out of control easily,
you probably have too much stuff on it that
doesn't need to be there.
         Donna Smallin, "Unclutter Your Home"

More information about the Python-list mailing list