def main():
    """Entry point for remove_template."""

    # Wrap sys stdout for python 2, so print can understand unicode.
    if sys.version_info[0] < 3:
        sys.stdout = codecs.getwriter("utf-8")(sys.stdout)

    options = docopt.docopt(__doc__,
                            help=True,
                            version='template_remover v%s' % __VERSION__)

    print(template_remover.clean(io.open(options['FILENAME']).read()))

    return 0
Entry point for remove_template.