| Index: tools/testing/dart/test_options.dart
|
| diff --git a/tools/testing/dart/test_options.dart b/tools/testing/dart/test_options.dart
|
| index e49d4d2bfa6d4a66db0fd398ac858cfe512aaf44..0d6e72104c2ba26b03e0ae059a0104ef2aabc10f 100644
|
| --- a/tools/testing/dart/test_options.dart
|
| +++ b/tools/testing/dart/test_options.dart
|
| @@ -184,7 +184,14 @@ is 'dart file.dart' and you specify special command
|
| var split = arg.lastIndexOf('=');
|
| if (split == -1) {
|
| name = arg;
|
| - value = '';
|
| + // Boolean options do not have a value.
|
| + if (_getSpecification(name).type != 'bool') {
|
| + if ((i + 1) >= arguments.length) {
|
| + print('No value supplied for option $name');
|
| + return null;
|
| + }
|
| + value = arguments[++i];
|
| + }
|
| } else {
|
| name = arg.substring(0, split);
|
| value = arg.substring(split + 1, arg.length);
|
|
|