MCPcopy
hub / github.com/meteor/meteor / parsePortOption

Function parsePortOption

tools/cli/commands.js:90–99  ·  view source on GitHub ↗
(portOption)

Source from the content-addressed store, hash-verified

88}
89
90function parsePortOption(portOption) {
91 let parsedServerUrl = utils.parseUrl(portOption);
92
93 if (!parsedServerUrl.port) {
94 Console.error("--port must include a port.");
95 throw new main.ExitWithCode(1);
96 }
97
98 return parsedServerUrl;
99}
100
101function parseMobileServerOption(mobileServerOption,
102 optionName = 'mobile-server') {

Callers 1

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…