diff --git a/README.md b/README.md index 8d3b5bd3..a7eae8d8 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,11 @@ cd everything-claude-code npm install # or: pnpm install | yarn install | bun install # macOS/Linux + +# Recommended: install everything (full profile) +./install.sh --profile full + +# Or install for specific languages only ./install.sh typescript # or python or golang or swift or php # ./install.sh typescript python golang swift php # ./install.sh --target cursor typescript @@ -188,6 +193,11 @@ npm install # or: pnpm install | yarn install | bun install ```powershell # Windows PowerShell + +# Recommended: install everything (full profile) +.\install.ps1 --profile full + +# Or install for specific languages only .\install.ps1 typescript # or python or golang or swift or php # .\install.ps1 typescript python golang swift php # .\install.ps1 --target cursor typescript diff --git a/scripts/install-apply.js b/scripts/install-apply.js index 6eda0845..e082c3bb 100644 --- a/scripts/install-apply.js +++ b/scripts/install-apply.js @@ -17,10 +17,10 @@ const { parseInstallArgs, } = require('./lib/install/request'); -function showHelp(exitCode = 0) { +function getHelpText() { const languages = listLegacyCompatibilityLanguages(); - console.log(` + return ` Usage: install.sh [--target <${LEGACY_INSTALL_TARGETS.join('|')}>] [--dry-run] [--json] [ ...] install.sh [--target <${SUPPORTED_INSTALL_TARGETS.join('|')}>] [--dry-run] [--json] --profile [--with ]... [--without ]... install.sh [--target <${SUPPORTED_INSTALL_TARGETS.join('|')}>] [--dry-run] [--json] --modules [--with ]... [--without ]... @@ -44,8 +44,11 @@ Options: Available languages: ${languages.map(language => ` - ${language}`).join('\n')} -`); +`; +} +function showHelp(exitCode = 0) { + console.log(getHelpText()); process.exit(exitCode); } @@ -139,7 +142,7 @@ function main() { printHumanPlan(result, false); } } catch (error) { - console.error(`Error: ${error.message}`); + process.stderr.write(`Error: ${error.message}${getHelpText()}`); process.exit(1); } }