mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-20 00:14:58 +00:00
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:
1 parent
dcc5c5d4ed
commit
22c7d4a20d
3 files changed
+71
-9
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user