Difficulty: Lv ★★★★ | Prerequisites: Advanced 1, Week 9
Goal
A real CLI tool with a subcommand structure (e.g., To-Do)
Requirements
- subparsers of argparse
mytool add ...,mytool list,mytool del ...--help,--versionoperations- Can be registered in console_scripts of pyproject.toml
Input/Output Example
$ todo add "Buy milk" --priority high
$ todo list --only-pending
$ todo done 3
$ todo --version
Challenge Task
- Rewrite and compare with
click richcolored output