feat(doctor): add --help flag with comprehensive command documentation

- Add showHelp() with usage, options, checks, examples, exit codes
- Update handleDoctorCommand to accept args array instead of boolean
- Update ccs.ts to pass restArgs to doctor command
- Add doctor to CLAUDE.md Help Location Reference table
This commit is contained in:
kaitranntt committed 2026-01-13 11:43:27 -05:00
1 parent dcc5c5d4ed
commit 22c7d4a20d
3 files changed
+71 -9

No files matched your search

+2 -2
View File
@@ -340,8 +340,8 @@ async function main(): Promise<void> {
// Special case: doctor command
if (firstArg === 'doctor' || firstArg === '--doctor') {
const shouldFix = args.includes('--fix') || args.includes('-f');
await handleDoctorCommand(shouldFix);
const restArgs = args.slice(args.indexOf(firstArg) + 1);
await handleDoctorCommand(restArgs);
return;
}