From 691380e0cab6c0af617b0b7da45d318005eea682 Mon Sep 17 00:00:00 2001 From: Rob Di Marco Date: Tue, 9 Sep 2025 17:21:01 -0400 Subject: [PATCH] Improve CLI error handling for unrecognized commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show full help information when user enters an unrecognized command instead of just displaying a brief error message. This provides better UX by letting users immediately see available commands without needing to run help separately. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- packages/atxp/src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/atxp/src/index.ts b/packages/atxp/src/index.ts index d3fff4f..8a3e455 100644 --- a/packages/atxp/src/index.ts +++ b/packages/atxp/src/index.ts @@ -78,9 +78,10 @@ async function main() { // No command provided - show help instead of running demo showHelp(); } else { - // Unknown command + // Unknown command - show help instead of just error console.log(`Unknown command: ${command}`); - console.log('Run "npx atxp help" for usage information.'); + console.log(); + showHelp(); process.exit(1); } }