| 85 | } |
| 86 | |
| 87 | func printUsage() { |
| 88 | fmt.Fprintf(os.Stderr, `code2context - Code project scanner for use with Fabric AI |
| 89 | |
| 90 | Usage: |
| 91 | code2context [options] <directory> <instructions> |
| 92 | <file_list> | code2context [options] <instructions> |
| 93 | |
| 94 | Examples: |
| 95 | code2context . "Add input validation to all user inputs" |
| 96 | code2context -depth 4 ./my-project "Implement error handling" |
| 97 | code2context -out project.json ./src "Fix security issues" |
| 98 | find . -name '*.go' | code2context "Refactor error handling" |
| 99 | git ls-files '*.py' | code2context "Add type hints" |
| 100 | |
| 101 | Options: |
| 102 | `) |
| 103 | flag.PrintDefaults() |
| 104 | } |