(mobileServerOption, optionName = 'mobile-server')
| 99 | } |
| 100 | |
| 101 | function parseMobileServerOption(mobileServerOption, |
| 102 | optionName = 'mobile-server') { |
| 103 | let parsedMobileServerUrl = utils.parseUrl( |
| 104 | mobileServerOption, |
| 105 | { protocol: 'http' }); |
| 106 | |
| 107 | if (!parsedMobileServerUrl.hostname) { |
| 108 | Console.error(`--${optionName} must include a hostname.`); |
| 109 | throw new main.ExitWithCode(1); |
| 110 | } |
| 111 | |
| 112 | return parsedMobileServerUrl; |
| 113 | } |
| 114 | |
| 115 | function parseCordovaServerPortOption(options = {}) { |
| 116 | const cordovaServerPortOption = options['cordova-server-port']; |
no test coverage detected
searching dependent graphs…