import click


def shard_option(func):
    """Option for configuring the current shard."""
    return click.option(
        '--shard', type=int,
        help='Current index of shard being used for sharding.')(func)