(
ctx: typer.Context,
version: bool = typer.Option(False, "--version", "-V", help="Show version and exit."),
)
| 70 | |
| 71 | @app.callback() |
| 72 | def _main_callback( |
| 73 | ctx: typer.Context, |
| 74 | version: bool = typer.Option(False, "--version", "-V", help="Show version and exit."), |
| 75 | ) -> None: |
| 76 | if version: |
| 77 | typer.echo(f"paperflow {__version__}") |
| 78 | raise typer.Exit() |
| 79 | if ctx.invoked_subcommand is None: |
| 80 | typer.echo(ctx.get_help()) |
| 81 | raise typer.Exit() |
| 82 | |
| 83 | |
| 84 | @app.command() |
nothing calls this directly
no outgoing calls
no test coverage detected