CLI: add gateway verbose flag

This commit is contained in:
Peter Steinberger
2025-12-09 17:17:50 +01:00
parent a86963d62d
commit 4bf968a45a
4 changed files with 9 additions and 8 deletions

View File

@@ -227,7 +227,9 @@ Examples:
"--token <token>",
"Shared token required in hello.auth.token (default: CLAWDIS_GATEWAY_TOKEN env if set)",
)
.option("--verbose", "Verbose logging to stdout/stderr", false)
.action(async (opts) => {
setVerbose(Boolean(opts.verbose));
const port = Number.parseInt(String(opts.port ?? "18789"), 10);
if (Number.isNaN(port) || port <= 0) {
defaultRuntime.error("Invalid port");