@@ -11,7 +11,7 @@ import '../globals.dart' as globals;
1111import '../html_utils.dart' ;
1212import '../project.dart' ;
1313import '../runner/flutter_command.dart'
14- show DevelopmentArtifact, FlutterCommandResult;
14+ show DevelopmentArtifact, FlutterCommandResult, FlutterOptions ;
1515import '../web/compile.dart' ;
1616import 'build.dart' ;
1717
@@ -98,14 +98,14 @@ class BuildWebCommand extends BuildSubCommand {
9898 if (featureFlags.isFlutterWebWasmEnabled) {
9999 argParser.addSeparator ('Experimental options' );
100100 argParser.addFlag (
101- 'wasm' ,
102- help: 'Compile to WebAssembly rather than JavaScript.' ,
101+ FlutterOptions .kWebWasmFlag ,
102+ help: 'Compile to WebAssembly rather than JavaScript.\n See $ kWasmPreviewUri for more information. ' ,
103103 negatable: false ,
104104 );
105105 } else {
106106 // Add the flag as hidden. Will give a helpful error message in [runCommand] below.
107107 argParser.addFlag (
108- 'wasm' ,
108+ FlutterOptions .kWebWasmFlag ,
109109 hide: true ,
110110 );
111111 }
@@ -134,7 +134,7 @@ class BuildWebCommand extends BuildSubCommand {
134134 throwToolExit ('"build web" is not currently supported. To enable, run "flutter config --enable-web".' );
135135 }
136136
137- final bool wasmRequested = boolArg ('wasm' );
137+ final bool wasmRequested = boolArg (FlutterOptions .kWebWasmFlag );
138138 if (wasmRequested && ! featureFlags.isFlutterWebWasmEnabled) {
139139 throwToolExit ('Compiling to WebAssembly (wasm) is only available on the master channel.' );
140140 }
0 commit comments