openclaw / src /cli /shared /parse-port.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
f778c12 verified
Raw
History Blame Contribute Delete
348 Bytes
// CLI-facing TCP port parser wrapper.
import { parseTcpPort } from "../../infra/tcp-port.js";
/** Re-export the canonical TCP port parser and limit for CLI callers. */
/** Parse a TCP port from unknown CLI/config input, returning null for invalid values. */
export function parsePort(raw: unknown): number | null {
return parseTcpPort(raw);
}