OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library options; | 5 library options; |
6 | 6 |
7 import 'package:args/args.dart'; | 7 import 'package:args/args.dart'; |
8 import 'package:path/path.dart'; | 8 import 'package:path/path.dart'; |
9 | 9 |
10 import 'dart:io'; | 10 import 'dart:io'; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 277 |
278 _getNextFlagIndex(args, i) { | 278 _getNextFlagIndex(args, i) { |
279 for ( ; i < args.length; ++i) { | 279 for ( ; i < args.length; ++i) { |
280 if (args[i].startsWith('--')) { | 280 if (args[i].startsWith('--')) { |
281 return i; | 281 return i; |
282 } | 282 } |
283 } | 283 } |
284 return i; | 284 return i; |
285 } | 285 } |
286 } | 286 } |
OLD | NEW |