Skip to content

Instantly share code, notes, and snippets.

@fitzy1321
Created August 21, 2025 05:57
Show Gist options
  • Save fitzy1321/8f58c489f49325d20212f23f650c682b to your computer and use it in GitHub Desktop.
Save fitzy1321/8f58c489f49325d20212f23f650c682b to your computer and use it in GitHub Desktop.
Typer add `-h` flag
import typer
app = typer.Typer(context_settings={"help_options_names": ["-h","--help"]})
# ...
if __name__ == "__main__":
app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment