support option counting like click #727
Answered
by
apinkney97
xiaopeng163
asked this question in
Questions
-
First Check
Commit to Help
Example Code@click.command()
@click.option('-v', '--verbose', count=True)
def log(verbose):
click.echo(f"Verbosity: {verbose}") Descriptionare we going to support option counting just like click? thanks. Operating SystemLinux, Windows, macOS Operating System DetailsNo response Typer Version0.9.0 Python Version3.11.4 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
apinkney97
Mar 20, 2024
Replies: 1 comment
-
FYI this seems to be already supported: https://typer.tiangolo.com/tutorial/parameter-types/number/#counter-cli-options |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiaopeng163
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI this seems to be already supported:
https://typer.tiangolo.com/tutorial/parameter-types/number/#counter-cli-options