import click


def option_pid(required: bool = False):
    """Get parameter options for record PID."""
    return click.option(
        "--pid",
        "-p",
        metavar="PID_VALUE",
        required=required,
        help="persistent identifier of the object to operate on",
    )