Add the command line entry point #14

Closed
opened 2026-10-07 18:01:51 +02:00 by Tirsvad · 0 comments
Owner

Add cli.py with main(argv) and __main__.py so that python -m turtle_challenges <challenge> creates the window, runs the named challenge and waits for a click. Register square and dashed-line; the choices are listed by --help. Declare the turtle-challenges command in pyproject.toml, since it points at cli.py.

Phase: MIL-002

Add `cli.py` with `main(argv)` and `__main__.py` so that `python -m turtle_challenges <challenge>` creates the window, runs the named challenge and waits for a click. Register `square` and `dashed-line`; the choices are listed by `--help`. Declare the `turtle-challenges` command in `pyproject.toml`, since it points at `cli.py`. Phase: MIL-002
Tirsvad added this to the Milestone 002: Square and Dashed Line milestone 2026-10-07 18:01:51 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/018-turtle#14