def add_list_subcommand(subparser_factory):

    list_help = "List the databases on the test server."
    subparser = subparser_factory.add_parser('list', help=list_help,
                                             description=list_help)

    subparser.set_defaults(subcommand=run_list_subcommand)
Simply write some content to a file, overriding the file if necessary.
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/testdb.py/add_list_subcommand--crossover with--dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/write_file