()
| 499 | } |
| 500 | |
| 501 | func printHelp() { |
| 502 | fmt.Println(`Chief - Autonomous PRD Agent |
| 503 | |
| 504 | Usage: |
| 505 | chief [options] [<name>|<path/to/prd.md>] |
| 506 | chief <command> [arguments] |
| 507 | |
| 508 | Commands: |
| 509 | new [name] [context] Create a new PRD interactively |
| 510 | edit [name] [options] Edit an existing PRD interactively |
| 511 | status [name] Show progress for a PRD (default: main) |
| 512 | list List all PRDs with progress |
| 513 | update Update Chief to the latest version |
| 514 | help Show this help message |
| 515 | |
| 516 | Global Options: |
| 517 | --agent <provider> Agent CLI to use: claude (default), codex, opencode, or cursor |
| 518 | --agent-path <path> Custom path to agent CLI binary |
| 519 | --max-iterations N, -n N Set maximum iterations (default: dynamic) |
| 520 | --no-retry Disable auto-retry on agent crashes |
| 521 | --verbose Show raw agent output in log |
| 522 | --merge Auto-merge progress on conversion conflicts |
| 523 | --force Auto-overwrite on conversion conflicts |
| 524 | --help, -h Show this help message |
| 525 | --version, -v Show version number |
| 526 | |
| 527 | Edit Options: |
| 528 | --merge Auto-merge progress on conversion conflicts |
| 529 | --force Auto-overwrite on conversion conflicts |
| 530 | |
| 531 | Positional Arguments: |
| 532 | <name> PRD name (loads .chief/prds/<name>/prd.md) |
| 533 | <path/to/prd.md> Direct path to a prd.md file |
| 534 | |
| 535 | Examples: |
| 536 | chief Launch TUI with default PRD (.chief/prds/main/) |
| 537 | chief auth Launch TUI with named PRD (.chief/prds/auth/) |
| 538 | chief ./my-prd.md Launch TUI with specific PRD file |
| 539 | chief -n 20 Launch with 20 max iterations |
| 540 | chief --max-iterations=5 auth |
| 541 | Launch auth PRD with 5 max iterations |
| 542 | chief --verbose Launch with raw agent output visible |
| 543 | chief --agent codex Use Codex CLI instead of Claude |
| 544 | chief --agent cursor Use Cursor CLI as agent |
| 545 | chief new Create PRD in .chief/prds/main/ |
| 546 | chief new auth Create PRD in .chief/prds/auth/ |
| 547 | chief new auth "JWT authentication for REST API" |
| 548 | Create PRD with context hint |
| 549 | chief edit Edit PRD in .chief/prds/main/ |
| 550 | chief edit auth Edit PRD in .chief/prds/auth/ |
| 551 | chief edit auth --merge Edit and auto-merge progress |
| 552 | chief status Show progress for default PRD |
| 553 | chief status auth Show progress for auth PRD |
| 554 | chief list List all PRDs with progress |
| 555 | chief --version Show version number`) |
| 556 | } |
| 557 | |
| 558 | func printWiggum() { |
no outgoing calls
no test coverage detected