def main(argv):
try:
opts, args=getopt.getopt(argv,"hp:d",["help", "path="])
except getopt.GetoptError:
usage()
sys.exit(2)
for opt, arg in opts:
if opt in ("-h", "--help"):
usage()
sys.exit()
elif opt == '-d':
global _debug
_debug=1
elif opt in ("-p", "--path"):
popolaFileLog(arg)