import click


def option_output_file(required: bool = False):
    """Get parameter options for output file."""
    return click.option(
        "--output-file",
        "--of",
        "output_file",
        metavar="string",
        required=required,
        help="name of file to write to",
        type=click.File("w"),
    )