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) {