Picking a default port based on the server hash

This commit is contained in:
Glen Maddern 2025-05-14 21:21:38 +10:00 committed by Glen Maddern
parent 6f2399bbfb
commit b1dfa9fe5b
3 changed files with 21 additions and 14 deletions

View file

@ -151,7 +151,7 @@ async function runClient(
}
// Parse command-line arguments and run the client
parseCommandLineArgs(process.argv.slice(2), 3333, 'Usage: npx tsx client.ts <https://server-url> [callback-port]')
parseCommandLineArgs(process.argv.slice(2), 'Usage: npx tsx client.ts <https://server-url> [callback-port]')
.then(({ serverUrl, callbackPort, headers, transportStrategy }) => {
return runClient(serverUrl, callbackPort, headers, transportStrategy)
})