"""Common CLI options for plugins."""

import click

PLUGIN_VERSION = click.option(
    "--version",
    is_flag=True,
    help="Display the package version.",
)

PLUGIN_ABOUT = click.option(
    "--about",
    is_flag=True,
    help="Display package metadata and settings.",
)

PLUGIN_ABOUT_FORMAT = click.option(
    "--format",
    help="Specify output style for --about",
    type=click.Choice(["json", "markdown"], case_sensitive=False),
    default=None,
)

PLUGIN_CONFIG = click.option(
    "--config",
    multiple=True,
    help="Configuration file location or 'ENV' to use environment variables.",
    type=click.STRING,
    default=(),
)

PLUGIN_FILE_INPUT = click.option(
    "--input",
    "file_input",
    help="A path to read messages from instead of from standard in.",
    type=click.File("r"),
)

"""Common CLI options for plugins."""

import click

PLUGIN_VERSION = click.option(
    "--version",
    is_flag=True,
    help="Display the package version.",
)

PLUGIN_ABOUT = click.option(
    "--about",
    is_flag=True,
    help="Display package metadata and settings.",
)

PLUGIN_ABOUT_FORMAT = click.option(
    "--format",
    help="Specify output style for --about",
    type=click.Choice(["json", "markdown"], case_sensitive=False),
    default=None,
)

PLUGIN_CONFIG = click.option(
    "--config",
    multiple=True,
    help="Configuration file location or 'ENV' to use environment variables.",
    type=click.STRING,
    default=(),
)

PLUGIN_FILE_INPUT = click.option(
    "--input",
    "file_input",
    help="A path to read messages from instead of from standard in.",
    type=click.File("r"),
)

Common CLI options for plugins.