Chromium Code Reviews| Index: dart/lib/compiler/implementation/tools/mini_parser.dart |
| diff --git a/dart/lib/compiler/implementation/tools/mini_parser.dart b/dart/lib/compiler/implementation/tools/mini_parser.dart |
| index 20bcb581d78292e9e192f1ea1bb678ead00252e9..2f242add020cd662def82794cd983e12fa40dfe8 100644 |
| --- a/dart/lib/compiler/implementation/tools/mini_parser.dart |
| +++ b/dart/lib/compiler/implementation/tools/mini_parser.dart |
| @@ -22,7 +22,9 @@ |
| int charCount = 0; |
| Stopwatch stopwatch; |
| -void main() { |
| +void main() { toolMain(new Options().arguments); } |
|
kasperl
2012/08/14 08:30:03
I'd prefer to put this on multiple lines. Break af
|
| + |
| +void toolMain(List<String> arguments) { |
| filesWithCrashes = []; |
| stopwatch = new Stopwatch(); |
| MyOptions options = new MyOptions(); |
| @@ -47,7 +49,7 @@ void main() { |
| } |
| } |
| - for (String argument in new Options().arguments) { |
| + for (String argument in arguments) { |
| if (argument == "--diet") { |
| options.diet = true; |
| continue; |