From 9ede1447fb70e1324c7d374597c8c5e672c8f1c7 Mon Sep 17 00:00:00 2001 From: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Date: Mon, 10 Nov 2025 12:47:51 -0500 Subject: [PATCH] remove `--no-port-switching` since there is literally no code to handle it and hasn't been for many years --- source/types.ts | 1 - source/utilities/cli.ts | 3 --- tests/__snapshots__/cli.test.ts.snap | 2 -- 3 files changed, 6 deletions(-) diff --git a/source/types.ts b/source/types.ts index 9294d7c3..e54a8167 100644 --- a/source/types.ts +++ b/source/types.ts @@ -81,7 +81,6 @@ export declare interface Options { '--no-etag': boolean; '--symlinks': boolean; '--cors': boolean; - '--no-port-switching': boolean; '--ssl-cert': Path; '--ssl-key': Path; '--ssl-pass': string; diff --git a/source/utilities/cli.ts b/source/utilities/cli.ts index 726c5268..5298876b 100644 --- a/source/utilities/cli.ts +++ b/source/utilities/cli.ts @@ -64,8 +64,6 @@ const helpText = chalkTemplate` --ssl-pass Optional path to the SSL/TLS certificate\'s passphrase - --no-port-switching Do not open a port other than the one specified when it\'s taken. - {bold ENDPOINTS} Listen endpoints (specified by the {bold --listen} or {bold -l} options above) instruct {cyan serve} @@ -155,7 +153,6 @@ const options = { '--no-etag': Boolean, '--symlinks': Boolean, '--cors': Boolean, - '--no-port-switching': Boolean, '--ssl-cert': String, '--ssl-key': String, '--ssl-pass': String, diff --git a/tests/__snapshots__/cli.test.ts.snap b/tests/__snapshots__/cli.test.ts.snap index 9cddf0e0..010e7d09 100644 --- a/tests/__snapshots__/cli.test.ts.snap +++ b/tests/__snapshots__/cli.test.ts.snap @@ -53,8 +53,6 @@ exports[`utilities/cli > render help text 1`] = ` --ssl-pass Optional path to the SSL/TLS certificate's passphrase - --no-port-switching Do not open a port other than the one specified when it's taken. - ENDPOINTS Listen endpoints (specified by the --listen or -l options above) instruct serve