CLI tool builder with argument parsing and colored output
Views
1.2K
Copies
240
Likes
216
Comments
0
Copy rate
20.0%
Prompt
Build a production-quality CLI tool in [language] that [tool_purpose]. Requirements:
- Argument parsing with --help, --version, and subcommands
- Colored terminal output (errors in red, success in green, warnings in yellow)
- Progress indicators for long operations
- Configuration file support (reads from ~/.config/[tool_name].toml)
- Structured error messages with error codes
- Exit codes following Unix conventions (0 = success, 1 = general error, 2 = usage error)
- --quiet and --verbose flags for output control
- --json flag for machine-readable output
Include the main entry point, argument parser, and at least 2 subcommands.Customise this prompt
Fill in 2 variables to personalise this prompt
Preview
Build a production-quality CLI tool in [language] that [tool_purpose]. Requirements:
- Argument parsing with --help, --version, and subcommands
- Colored terminal output (errors in red, success in green, warnings in yellow)
- Progress indicators for long operations
- Configuration file support (reads from ~/.config/[tool_name].toml)
- Structured error messages with error codes
- Exit codes following Unix conventions (0 = success, 1 = general error, 2 = usage error)
- --quiet and --verbose flags for output control
- --json flag for machine-readable output
Include the main entry point, argument parser, and at least 2 subcommands.
Example output