Skip to content
Discussion options

You must be logged in to vote

You can specify it after /:

    formal: Annotated[bool, typer.Option("--formal\--no-formal", "-f/-F")],

Docs: https://typer.tiangolo.com/tutorial/parameter-types/bool/#alternative-names

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants