Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def main(argv):
  2.  
  3.     try:
  4.         opts, args=getopt.getopt(argv,"hp:d",["help", "path="])
  5.     except getopt.GetoptError:
  6.         usage()
  7.         sys.exit(2)
  8.     for opt, arg in opts:
  9.         if opt in ("-h", "--help"):
  10.             usage()
  11.             sys.exit()
  12.         elif opt == '-d':
  13.             global _debug
  14.             _debug=1
  15.         elif opt in ("-p", "--path"):
  16.             popolaFileLog(arg)