import click


def option_input_file(required: bool = False):
    """Get parameter options for input file."""
    return click.option(
        "--input-file",
        "--if",
        "input_file",
        metavar="string",
        required=required,
        help="name of file to read from",
        type=click.File("r"),
    )