Programming-Challenges/test/main.py
2026-08-31 20:08:56 +01:00

17 lines
315 B
Python
Executable File

#!/usr/bin/env python3
import typer
from typing import Annotated
app = typer.Typer()
@app.command()
def goodbye(name: Annotated[str, typer.Option(prompt="What is your name?")] = "World"):
typer.echo(f"goodbye {name}")
@app.command()
def main():
typer.echo(f"Hello")
if __name__ == "__main__":
app()