Coverage for docs_src/arguments/help/tutorial005.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-09 18:26 +0000

1import typer 1habcdefg

2 

3 

4def main( 1abcdefg

5 name: str = typer.Argument( 

6 "Wade Wilson", help="Who to greet", show_default="Deadpoolio the amazing's name" 

7 ), 

8): 

9 print(f"Hello {name}") 1habcdefg

10 

11 

12if __name__ == "__main__": 1habcdefg

13 typer.run(main) 1habcdefg