def _main():
import pprint<EOL>import tempfile<EOL>try:<EOL><INDENT>image = sys.argv[<NUM_LIT:1>]<EOL><DEDENT>except IndexError:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>pprint.pprint(copy_image_from_url(image, cache_dir=tempfile.gettempdir()))<EOL><DEDENT>except UploadError as exc:<EOL><INDENT>print("<STR_LIT>" % exc)<EOL><DEDENT><DEDENT>
Command line interface for testing.