From 1f0019b048328b94218fd30c593555446895e66c Mon Sep 17 00:00:00 2001 From: David Susskind Date: Tue, 4 Aug 2026 13:10:58 +0300 Subject: [PATCH] fix(logs): show --level in `base44 logs --help` `--level` was registered with `.hideHelp()`, so a fully working, tested filter was invisible in `--help`. Every other `hideHelp()` in the repo marks a deprecated alias (`--org`, `--project-id`); `--level` is not one. Adds a help test that fails without the fix. Co-Authored-By: Claude Opus 5 (1M context) --- packages/cli/src/cli/commands/project/logs.ts | 6 +++--- packages/cli/tests/cli/logs.spec.ts | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/cli/commands/project/logs.ts b/packages/cli/src/cli/commands/project/logs.ts index 602ca8fc6..5e0ea259d 100644 --- a/packages/cli/src/cli/commands/project/logs.ts +++ b/packages/cli/src/cli/commands/project/logs.ts @@ -350,9 +350,9 @@ export function getLogsCommand(): Command { normalizeDatetime, ) .addOption( - new Option("--level ", "Filter by log level") - .choices([...LogLevelSchema.options]) - .hideHelp(), + new Option("--level ", "Filter by log level").choices([ + ...LogLevelSchema.options, + ]), ) .option("-n, --limit ", "Results per page (1-1000, default: 50)") .option("-f, --follow", "Stream new logs as they arrive") diff --git a/packages/cli/tests/cli/logs.spec.ts b/packages/cli/tests/cli/logs.spec.ts index 2b54b8f87..0da92dd34 100644 --- a/packages/cli/tests/cli/logs.spec.ts +++ b/packages/cli/tests/cli/logs.spec.ts @@ -311,6 +311,13 @@ describe("logs command", () => { t.expectResult(result).toFail(); }); + it("documents --level in --help", async () => { + const result = await t.run("logs", "--help"); + + t.expectResult(result).toSucceed(); + t.expectResult(result).toContain("--level "); + }); + it("filters function logs by --level", async () => { await t.givenLoggedInWithProject(fixture("basic")); t.api.mockFunctionLogs("my-function", [