def index(args):
    p = OptionParser(index.__doc__)
    opts, args = p.parse_args(args)

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

    dbfile, = args
    check_index(dbfile)
%prog index database.fasta
dataset/ETHPy150Open tanghaibao/jcvi/apps/bwa.py/index