def METHOD_NAME(subparsers):
    settings_parser = subparsers.add_parser(
        "settings", help="Tethys settings configuration command."
    )
    settings_parser.add_argument(
        "-s",
        "--set",
        dest="set_kwargs",
        help="Key Value pairs to add to the settings in the portal_config.yml file. Hierarchical keys can be "
        "specified with dot notation. (e.g. DATABASES.default.NAME)",
        nargs=2,
        action="append",
    )
    settings_parser.add_argument(
        "-g",
        "--get",
        dest="get_key",
        help="Retrieve the resolved value of a key from settings if it exists. Otherwise, attempt to return the value "
        "of the key from the portal_config.yml",
        nargs="?",
        const="all",
    )
    settings_parser.add_argument(
        "-r",
        "--rm",
        "--remove",
        dest="rm_key",
        help="Removes a key from the portal_config.yml file if it exists. Hierarchical keys can be specified with "
        "dot notation. (e.g. DATABASES.default.NAME)",
        nargs=1,
    )
    settings_parser.set_defaults(
        func=settings_command,
    )