import click


def locale_option(help_text=None, multiple=True):
    """Option for providing locale(s)."""
    if help_text is None:
        help_text = 'Locale to target.'

    def _decorator(func):
        return click.option(
            '--locale', type=str, multiple=multiple, help=help_text)(func)
    return _decorator