| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:args/args.dart'; | 7 import 'package:args/args.dart'; |
| 8 | 8 |
| 9 import '../../backend/test_platform.dart'; |
| 9 import '../../frontend/timeout.dart'; | 10 import '../../frontend/timeout.dart'; |
| 10 import '../../backend/test_platform.dart'; | |
| 11 import '../../utils.dart'; | 11 import '../../utils.dart'; |
| 12 import '../configuration.dart'; | 12 import '../configuration.dart'; |
| 13 import 'values.dart'; | 13 import 'values.dart'; |
| 14 | 14 |
| 15 /// The parser used to parse the command-line arguments. | 15 /// The parser used to parse the command-line arguments. |
| 16 final ArgParser _parser = (() { | 16 final ArgParser _parser = (() { |
| 17 var parser = new ArgParser(allowTrailingOptions: true); | 17 var parser = new ArgParser(allowTrailingOptions: true); |
| 18 | 18 |
| 19 var allPlatforms = TestPlatform.all.toList(); | 19 var allPlatforms = TestPlatform.all.toList(); |
| 20 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari); | 20 if (!Platform.isMacOS) allPlatforms.remove(TestPlatform.safari); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 var value = options[name]; | 168 var value = options[name]; |
| 169 if (value == null) return null; | 169 if (value == null) return null; |
| 170 | 170 |
| 171 try { | 171 try { |
| 172 return parse(value); | 172 return parse(value); |
| 173 } on FormatException catch (error) { | 173 } on FormatException catch (error) { |
| 174 throw new FormatException('Couldn\'t parse --$name "${options[name]}": ' | 174 throw new FormatException('Couldn\'t parse --$name "${options[name]}": ' |
| 175 '${error.message}'); | 175 '${error.message}'); |
| 176 } | 176 } |
| 177 } | 177 } |
| OLD | NEW |