Index: sdk/lib/_internal/compiler/implementation/dart2js.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
index 8531504ab7fff9da8b4dd7fcf14b53d0c94a34fa..fd830908c0aaed312d8c35d5e8c97603448040f2 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -155,7 +155,8 @@ Future compile(List<String> argv) { |
setOutputType(String argument) { |
optionsImplyCompilation.add(argument); |
- if (argument == '--output-type=dart') { |
+ if (argument == '--output-type=dart' || |
+ argument == '--output-type=dart-multi') { |
outputLanguage = OUTPUT_LANGUAGE_DART; |
if (!explicitOut) { |
out = currentDirectory.resolve('out.dart'); |
@@ -279,7 +280,9 @@ Future compile(List<String> argv) { |
}), |
new OptionHandler('--suppress-hints', |
(_) => diagnosticHandler.showHints = false), |
- new OptionHandler('--output-type=dart|--output-type=js', setOutputType), |
+ new OptionHandler( |
+ '--output-type=dart|--output-type=dart-multi|--output-type=js', |
+ setOutputType), |
new OptionHandler('--verbose', setVerbose), |
new OptionHandler('--version', (_) => wantVersion = true), |
new OptionHandler('--library-root=.+', setLibraryRoot), |