def main(args=sys.argv[<NUM_LIT:1>:]):
if not is_pywin32_available():<EOL><INDENT>sys.stderr.write('<STR_LIT>')<EOL>return -<NUM_LIT:1><EOL><DEDENT>try:<EOL><INDENT>options, argv = parse_options(args)<EOL>export_img(argv[<NUM_LIT:0>], argv[<NUM_LIT:1>], options.pagenum, options.pagename)<EOL>return <NUM_LIT:0><EOL><DEDENT>except (IOError, OSError, IndexError) as err:<EOL><INDENT>sys.stderr.write("<STR_LIT>" % err)<EOL>return -<NUM_LIT:1><EOL><DEDENT>
main funcion of visio2img