from typing import Callable
import click


def verbosity_option(command: Callable[..., None]) -> Callable[..., None]:
    """
    A decorator for setting the verbosity of logging.
    """
    function = click.option(
        '-v',
        '--verbose',
        help=(
            'Use verbose output. '
            'Use this option multiple times for more verbose output.'
        ),
        count=True,
    )(command)  # type: Callable[..., None]
    return function