gezel Gezel Handboek

Command-Line Tool

Build a command-line tool with subcommands, flags, arguments, help text, and proper exit codes. Designs the CLI UX FIRST — the command surface, flags with defaults, positional args, help/usage output, and exit-code conventions — because a CLI's contract is its interface, then implements argument parsing and command logic, then writes tests for parsing, help, happy paths, and error exits. Covers argv parsing, subcommands, --flags and -short forms, --help, stdin/stdout/stderr conventions, and non-zero exit codes on error.

How it runs

#StepWho runs itWhat happens
1CLI UX scopePlannerlock the command surface, flags, args, exit codes
2Build the CLIDeveloperimplement parsing + command logic
3Write CLI testsDevelopertest parsing, help, happy paths, error exits
4EvaluateReviewerGrade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.
5FinishDeveloperAll acceptance criteria met. Stamp a short summary and report DONE.

Say something like "build a cli tool" or "command line tool" or "make a terminal command" or "cli with subcommands" or "argv parser" in chat to start it.

Watch this article as a slideshow