From 2525d7558003e6a3c0e59ccf68273b7514abc118 Mon Sep 17 00:00:00 2001 From: Paul Valladares Date: Tue, 21 Jul 2026 21:01:28 -0600 Subject: [PATCH] feat: point bare invocation at -h instead of dumping usage --- src/cli.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 9b239cf..500cd60 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -76,9 +76,17 @@ const [command] = args._; // keep --json pipe-clean; watch takes the whole screen immediately if (!args.json && command !== "watch") await animateBanner(); -if (args.help || !command) { +if (args.help) { console.log(colorUsage(usage)); - process.exit(args.help ? 0 : 1); + process.exit(0); +} +if (!command) { + console.log( + styleText("dim", "run ") + + styleText("cyan", "fid -h") + + styleText("dim", " to see what fid can do"), + ); + process.exit(1); } switch (command) { -- 2.51.2