INNER CODE UNIT · Python

main_callback

BioTender-max/awesome-bio-agent-skills · skills/openclaw/biomcp-server/repo/src/biomcp/cli/main.py:110

def main_callback(
    version: Annotated[
        bool | None,  # Allows the option to not be present
        typer.Option(
            "--version",  # The flag name
            callback=version_callback,  # Function to call when flag is used
            is_eager=True,  # Process this option before any commands
            help="Show the application's version and exit.",
        ),
    ] = None,  # Default value
):
    """
    BioMCP main application callback. Handles global options like --version.
    """
    # The actual logic is in version_callback due to is_eager=True
    pass

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…