Three Input Paths
One command function, three ways to provide input. Click each tab to watch it run.
Explicit flags
Smart defaults
Interactive prompt
command.py
def init_command(
components: str | None = Option(None),
yes: bool = Option(False, "-y"),
):
if components: # ←
selected = components.split(",")
terminal
▊