def METHOD_NAME():
	parser = argparse.ArgumentParser(description="This script will try to "
			"open the given serial port, send a string to "
			"instruct the target device to dump the contents of "
			"the display to a serial link in XPM format. The "
			"received file is then written to 'display.xpm', "
			"unless a file is specified by the -o option.")
	parser.add_argument("-p", "--port", dest="serial_port",
			help="which serial port to open")
	parser.add_argument("-b", "--baud", dest="baudrate", type=int,
			help="baud rate to use for serial communication",
			default=19200)
	parser.add_argument("-o", "--output", dest="output_file",
			help="write XPM image to FILE. Default is display.xpm.",
			metavar="FILE", default="display.xpm")
	parser.add_argument("-s", "--scan", action="store_true",
			dest="scan_ports",
			help="scan for available serial ports and exit",
			default=False)
	arguments = parser.parse_args()
	if arguments.scan_ports:
		scan_for_ports()
		sys.exit()
	if arguments.serial_port is None:
		parser.print_usage()
		sys.exit()
	if os.path.exists(arguments.output_file):
		print "Warning: output file '%s' already exists" % (arguments.output_file)
		print "Do you want to write over file '%s'?" % (arguments.output_file)
		answer = raw_input("[yes/NO] ")
		if answer not in ("yes", "Yes", "YES"):
			sys.exit()
	dump_display_data(arguments.serial_port, arguments.baudrate, arguments.output_file)