def ansi2html():
    """
    Script to convert a console output to html.
    """
    import os
    from LbNightlyTools.HTMLUtils import convertFile
    from optparse import OptionParser
    parser = OptionParser(usage='%prog [options] <input> <output>')
    try:
        opts, (input, output) = parser.parse_args()
    except ValueError:
        parser.error('wrong number of arguments')
    return convertFile(input, output)
