INNER CODE UNIT · Python

_version_callback

yaojingang/GEORank · cli/georank_cli/main.py:9

def _version_callback(value: bool) -> None:
    if value:
        typer.echo(f"georank-cli {__version__}")
        raise typer.Exit()


@app.callback()
def main(
    version: bool = typer.Option(
        False,
        "--version",
        callback=_version_callback,
        is_eager=True,
        help="Show the independently versioned CLI release.",
    ),
) -> None:
    """Operate a GEOrank deployment from the command line."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…