| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 args.command_runner; | 5 library args.command_runner; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:math' as math; | 9 import 'dart:math' as math; |
| 10 | 10 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 var buffer = | 373 var buffer = |
| 374 new StringBuffer('Available ${isSubcommand ? "sub" : ""}commands:'); | 374 new StringBuffer('Available ${isSubcommand ? "sub" : ""}commands:'); |
| 375 for (var name in names) { | 375 for (var name in names) { |
| 376 buffer.writeln(); | 376 buffer.writeln(); |
| 377 buffer.write(' ${padRight(name, length)} ' | 377 buffer.write(' ${padRight(name, length)} ' |
| 378 '${commands[name].description.split("\n").first}'); | 378 '${commands[name].description.split("\n").first}'); |
| 379 } | 379 } |
| 380 | 380 |
| 381 return buffer.toString(); | 381 return buffer.toString(); |
| 382 } | 382 } |
| OLD | NEW |