def PrintUsageExit(code):
 print (sys.modules['__main__'].__doc__ % sys.argv[0])
 sys.stdout.flush()
 sys.stderr.flush()
 sys.exit(code)

def PrintUsageExit ( code ) : print ( sys . modules [ '__main__' ] . __doc__ % sys . argv [ 0 ] ) sys . stdout . flush ( ) sys . stderr . flush ( ) sys . exit ( code )
prints usage information and exits with a status code .