First Check
Commit to Help
Example Code
import typer
from typer import Argument, Option
def main(
const_option: str = Option(
"foo",
"--const_option",
is_flag=True,
flag_value="bar",
),
):
print(const_option)
if __name__ == "__main__":
typer.run(main)
Description
What I expect:
C:\>script
foo
C:\>script --const_option
bar
What happens:
C:\>script
bar
C:\>script --const_option
bar
Not sure what I am doing wrong here, can someone point me to the right direction?
Operating System
Windows
Operating System Details
No response
Typer Version
0.4.0
Python Version
Python 3.9.4
Additional Context
No response
First Check
Commit to Help
Example Code
Description
What I expect:
What happens:
Not sure what I am doing wrong here, can someone point me to the right direction?
Operating System
Windows
Operating System Details
No response
Typer Version
0.4.0
Python Version
Python 3.9.4
Additional Context
No response