| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.verbs.help_verb; | 5 library dartino_compiler.verbs.help_verb; |
| 6 | 6 |
| 7 import 'infrastructure.dart'; | 7 import 'infrastructure.dart'; |
| 8 | 8 |
| 9 import 'actions.dart' show | 9 import 'actions.dart' show |
| 10 commonActions, | 10 commonActions, |
| 11 uncommonActions; | 11 uncommonActions; |
| 12 | 12 |
| 13 import 'documentation.dart' show | 13 import 'documentation.dart' show |
| 14 helpDocumentation, | 14 helpDocumentation, |
| 15 synopsis; | 15 synopsis; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 if (!showAllActions && helpStrings.length > 20) { | 66 if (!showAllActions && helpStrings.length > 20) { |
| 67 throw new StateError( | 67 throw new StateError( |
| 68 "More than 20 lines in the combined documentation of [commonActions]. " | 68 "More than 20 lines in the combined documentation of [commonActions]. " |
| 69 "The documentation may scroll out of view:\n${helpStrings.join('\n')}." | 69 "The documentation may scroll out of view:\n${helpStrings.join('\n')}." |
| 70 "Can you shorten the documentation?"); | 70 "Can you shorten the documentation?"); |
| 71 } | 71 } |
| 72 return helpStrings.join("\n"); | 72 return helpStrings.join("\n"); |
| 73 } | 73 } |
| OLD | NEW |