in webdev/lib/src/command/configuration.dart [151:188]
void _validateConfiguration() {
// Both null and an empty string are valid values for outputInput. For any
// other value, we need to ensure it's a top-level dir.
if (outputInput?.isNotEmpty ?? false) ensureIsTopLevelDir(outputInput);
if ((tlsCertKey != null && tlsCertChain == null) ||
(tlsCertKey == null && tlsCertChain != null)) {
throw InvalidConfiguration(
'Must use --$tlsCertKey with --$tlsCertChain.');
}
if (debug && chromeDebugPort == 0 && !launchInChrome) {
throw InvalidConfiguration(
'Must either use --$chromeDebugPortFlag or --$launchInChromeFlag '
'with --$debugFlag.');
}
// Check that no debugging options were passed if the injected client is
// disabled.
if (!enableInjectedClient) {
if (debug) {
throw InvalidConfiguration(
'--$debugFlag cannot be used with --no-$enableInjectedClientFlag');
}
if (debugExtension) {
throw InvalidConfiguration('--$debugExtensionFlag cannot be used with '
'--no-$enableInjectedClientFlag');
}
if (chromeDebugPort != 0) {
throw InvalidConfiguration('--$chromeDebugPortFlag cannot be used '
'with --no-$enableInjectedClientFlag');
}
}
if (launchApps.isNotEmpty && !launchInChrome) {
throw InvalidConfiguration(
'--$launchAppOption can only be used with --$launchInChromeFlag');
}
}