def add_save_subcommand(subparser_factory):

    save_help = "Save a database to an sql dump file."
    subparser = subparser_factory.add_parser('save', help=save_help,
                                             description=save_help)

    dbname_help = "The name of the database to be saved."
    subparser.add_argument('dbname', help=dbname_help)

    dbfile_help = "The sql dump file to save to."
    subparser.add_argument('dbfile', help=dbfile_help)

    subparser.set_defaults(subcommand=run_save_subcommand)
Add a subparser for the save subcommand.
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/testdb.py/add_save_subcommand