def METHOD_NAME(cls, parser):
    """Add optimizer-specific arguments to the parser."""
    dc = getattr(cls, "__dataclass", None)
    if dc is not None:
        gen_parser_from_dataclass(parser, dc())