mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
rename port to web-port and hostname to web-hostname (#40370)
This commit is contained in:
parent
baa12b3309
commit
1667d0caa4
|
@ -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.',
|
||||
|
|
Loading…
Reference in a new issue