def params_from_cmd(args):
    """Extract the parameters for prepare_training_data from the command line and return a dict"""
    params = {
        "mtz_dir": args.mtz_dir,
        "mtz_file": args.mtz_file,
        "xyz_limits": args.xyz,
        "output_dir": args.maps_dir,
        "db_file": args.db_file,
        "delete_temp": True,
    }
    if args.keep_temp:
        params["delete_temp"] = False

    return params