Fix: treat update --help as read-only (#699)

Print update usage and return before any download, prompt, or skill write.

AI assistance: prepared with Cursor Grok under maintainer direction.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Abdul Wahab
2026-09-02 10:54:43 +05:00
co-authored by Cursor
parent c0f4952122
commit 2cfe48f6f0
2 changed files with 50 additions and 0 deletions
+18
View File
@@ -2362,7 +2362,25 @@ async function downloadFile(url, dest, { fetchImpl = globalThis.fetch } = {}) {
}
}
function printUpdateUsage() {
console.log(`Usage: impeccable update [options]
Update installed impeccable skills to the latest version.
Options:
--project, --user Update the project-level or user-level install
-y, --yes Skip confirmation prompts
--force Overwrite existing hook manifests
--no-hooks Refresh skills without installing or repairing hooks
-h, --help Show this help message`);
}
async function update(flags = []) {
if (flags.includes('--help') || flags.includes('-h')) {
printUpdateUsage();
return;
}
const yes = flags.includes('-y') || flags.includes('--yes');
const force = flags.includes('--force');
const installHooks = !flags.includes('--no-hooks');