def summary(args):
    p = OptionParser(summary.__doc__)

    opts, args = p.parse_args(args)

    if len(args) != 1:
        sys.exit(not p.print_help())

    blastfile, = args

    qrycovered, refcovered, id_pct = get_stats(blastfile)
    print_stats(qrycovered, refcovered, id_pct)
%prog summary blastfile
dataset/ETHPy150Open tanghaibao/jcvi/formats/blast.py/summary