Create a well-structured CLI tool with a package, a configuration file and pytest tests.
View the prompt
Create a Python command-line tool named {{project}}.
Its job: {{extra}}
Requirements:
- Python 3.11+, a src/ layout with pyproject.toml.
- argparse or Typer (explain the choice), with clear help messages.
- Explicit error handling and correct exit codes, and logging with logging, not print.
- pytest tests that cover normal cases, edge cases and errors.
- A README with install and run commands on Windows and Linux.
Run the tests after writing them and show me the actual result.