Created
August 21, 2025 05:57
-
-
Save fitzy1321/8f58c489f49325d20212f23f650c682b to your computer and use it in GitHub Desktop.
Typer add `-h` flag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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