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'],
|
dumpSkpOnShaderCompilation: argResults['dump-skp-on-shader-compilation'],
|
||||||
observatoryPort: observatoryPort,
|
observatoryPort: observatoryPort,
|
||||||
verboseSystemLogs: argResults['verbose-system-logs'],
|
verboseSystemLogs: argResults['verbose-system-logs'],
|
||||||
hostname: featureFlags.isWebEnabled ? argResults['hostname'] : '',
|
hostname: featureFlags.isWebEnabled ? argResults['web-hostname'] : '',
|
||||||
port: featureFlags.isWebEnabled ? argResults['port'] : '',
|
port: featureFlags.isWebEnabled ? argResults['web-port'] : '',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -133,12 +133,12 @@ abstract class FlutterCommand extends Command<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void usesWebOptions({ bool hide = true }) {
|
void usesWebOptions({ bool hide = true }) {
|
||||||
argParser.addOption('hostname',
|
argParser.addOption('web-hostname',
|
||||||
defaultsTo: 'localhost',
|
defaultsTo: 'localhost',
|
||||||
help: 'The hostname to serve web application on.',
|
help: 'The hostname to serve web application on.',
|
||||||
hide: hide,
|
hide: hide,
|
||||||
);
|
);
|
||||||
argParser.addOption('port',
|
argParser.addOption('web-port',
|
||||||
defaultsTo: null,
|
defaultsTo: null,
|
||||||
help: 'The host port to serve the web application from. If not provided, the tool '
|
help: 'The host port to serve the web application from. If not provided, the tool '
|
||||||
'will select a random open port on the host.',
|
'will select a random open port on the host.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user