Unverified Commit 1667d0ca authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

rename port to web-port and hostname to web-hostname (#40370)

parent baa12b33
......@@ -289,8 +289,8 @@ class RunCommand extends RunCommandBase {
dumpSkpOnShaderCompilation: argResults['dump-skp-on-shader-compilation'],
observatoryPort: observatoryPort,
verboseSystemLogs: argResults['verbose-system-logs'],
hostname: featureFlags.isWebEnabled ? argResults['hostname'] : '',
port: featureFlags.isWebEnabled ? argResults['port'] : '',
hostname: featureFlags.isWebEnabled ? argResults['web-hostname'] : '',
port: featureFlags.isWebEnabled ? argResults['web-port'] : '',
);
}
}
......
......@@ -133,12 +133,12 @@ abstract class FlutterCommand extends Command<void> {
}
void usesWebOptions({ bool hide = true }) {
argParser.addOption('hostname',
argParser.addOption('web-hostname',
defaultsTo: 'localhost',
help: 'The hostname to serve web application on.',
hide: hide,
);
argParser.addOption('port',
argParser.addOption('web-port',
defaultsTo: null,
help: 'The host port to serve the web application from. If not provided, the tool '
'will select a random open port on the host.',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment