CLI Tool

PatternBeginner

A program run from the terminal with arguments, to automate repetitive tasks.

Components

  • Argument parsing
  • Testable logic
  • Clear error messages

When it fits

  • Automating personal or team tasks.

Avoid it when

  • Users who do not use the terminal.

Risks

  • Commands that delete or move files without a dry-run mode.
Suggested structure
tool/__main__.py
tool/core.py
tests/