- for (opt, optval) in opts:
- if opt in ["--debug"]:
- config.debug = bool(int(optval))
- print "Running in DEBUG mode. Copying DB & "
- print "caching correspondences. NO SQUEEZING."
- elif opt in ["--mail"]:
- config.mail = bool(int(optval))
- print "NO EMAILS SENT."
- elif opt in ["--email"]:
- config.email = optval
- elif opt in ["--bcc"]:
- config.bcc = bool(int(optval))
- elif opt in ["--userlist"]:
- if len(optval) == 0:
- config.userlist = None
- else:
- config.userlist = optval
- elif opt in ["--cachert"]:
- config.cachert = bool(int(optval))
- elif opt in ["--cachesites"]:
- config.cachesites = bool(int(optval))
- elif opt in ["--cachenodes"]:
- config.cachenodes = bool(int(optval))
- elif opt in ["--policysavedb"]:
- config.policysavedb = bool(int(optval))
- elif opt in ["--squeeze"]:
- config.squeeze = bool(int(optval))
- elif opt in ["--status"]:
- #print summary(names)
- sys.exit(0)
- else:
- usage()
- sys.exit(0)