import click


def _parse_disable_retention_check(f):
    """Function to parse disable retention check option on the command line."""
    return click.option('--disable-retention-check',
                        default=False,
                        is_flag=True,
                        help='Disable check that stops reports being run for months outside the retention period.')(f)