CLI Reference

Document a command-line tool so --help, the man page, the web reference and shell completions all come from one source, the parser definition. Lays help out as a usage line, a one-line purpose, flags grouped by task with defaults and environment variables, three real examples and exit codes; states which flags conflict, require each other or override; generates the man page, reference and completions in the build instead of copying them; and snapshot-tests --help so an interface change shows up in review. Use whenever someone says "document this command-line tool", "our --help and the README disagree", "generate a man page for our CLI", "add shell completions" or "what exit codes should we document". Not for writing the tool (code-scaffold), an HTTP interface (api-design), the getting-started walkthrough (tutorial-clean-room), or a page per error code (error-catalogue).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 0053456b98

Frequently asked questions

npx get-skill add greenblacked/cli-reference