(prog: str, message: str, use_colors: bool)
| 266 | |
| 267 | |
| 268 | def print_trouble(prog: str, message: str, use_colors: bool) -> None: |
| 269 | error_text = "error:" |
| 270 | if use_colors: |
| 271 | error_text = bold_red(error_text) |
| 272 | print("{}: {} {}".format(prog, error_text, message), file=sys.stderr) |
| 273 | |
| 274 | |
| 275 | def main() -> int: |