import click


def work_dir_option(func):
    """Option for working directory."""
    help_text = 'Directory to pull working files from.'
    return click.option(
        '--work-dir', '--work_dir', type=str, default=None,
        help=help_text)(func)