def StartMain(main, argv=None):
 global FLAGS
 FLAGS = PARSER.parse_args(args=argv)
 try:
  main([sys.argv[0]])
 except Exception:
  if FLAGS.debug:
   pdb.post_mortem()
  raise

def StartMain ( main , argv = None ) : global FLAGS FLAGS = PARSER . parse_args ( args = argv ) try : main ( [ sys . argv [ 0 ] ] ) except Exception : if FLAGS . debug : pdb . post_mortem ( ) raise
the main entry point to start applications .