Index: tests/compiler/dart2js/analyze_test_test.dart |
diff --git a/tests/compiler/dart2js/analyze_test_test.dart b/tests/compiler/dart2js/analyze_test_test.dart |
index 4a2321b904695f6dfaff2c5edcc306869860447a..5da181caf63911bd76aa1f37b88346871d22713f 100644 |
--- a/tests/compiler/dart2js/analyze_test_test.dart |
+++ b/tests/compiler/dart2js/analyze_test_test.dart |
@@ -58,8 +58,12 @@ const List<MessageKind> MESSAGE_SKIP_LIST = const <MessageKind>[ |
main(List<String> arguments) { |
List<String> options = <String>[]; |
- if (arguments.contains('-v') || arguments.contains(Flags.verbose)) { |
- options.add(Flags.verbose); |
+ for (String argument in arguments) { |
+ if (argument == '-v') { |
+ options.add(Flags.verbose); |
+ } else if (argument.startsWith('-')) { |
+ options.add(argument); |
+ } |
} |
List<Uri> uriList = <Uri>[]; |
for (String arg in arguments) { |