sort of a beginner question about globals

fred.dixon fred.dixon at gmail.com
Wed Apr 13 11:22:04 EDT 2005


how would i use the following if OPTIONS was in a module ?
-----------------------
from optparse import OptionParser

usage = "usage: %prog [options] arg"
parser = OptionParser(usage)

parser.add_option("-d", "--debug", ction="store_true", dest="verbose")
(OPTIONS = parser.parse_args()

ps
Im not anywhere near my program right now just doing some kunch time
surfing.




More information about the Python-list mailing list