OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
6 * To generate docs for a library, run this script with the path to an | 6 * To generate docs for a library, run this script with the path to an |
7 * entrypoint .dart file, like: | 7 * entrypoint .dart file, like: |
8 * | 8 * |
9 * $ dart dartdoc.dart foo.dart | 9 * $ dart dartdoc.dart foo.dart |
10 * | 10 * |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 case '--verbose': | 72 case '--verbose': |
73 dartdoc.verbose = true; | 73 dartdoc.verbose = true; |
74 break; | 74 break; |
75 case '--include-api': | 75 case '--include-api': |
76 dartdoc.includeApi = true; | 76 dartdoc.includeApi = true; |
77 break; | 77 break; |
78 case '--link-api': | 78 case '--link-api': |
79 dartdoc.linkToApi = true; | 79 dartdoc.linkToApi = true; |
80 break; | 80 break; |
81 | 81 |
| 82 // Hack to accept, but not use, colors option. |
| 83 // This allows shared bash script to run dartdoc. |
| 84 case '--enable-diagnostic-colors': |
| 85 break; |
| 86 |
82 default: | 87 default: |
83 if (arg.startsWith('--out=')) { | 88 if (arg.startsWith('--out=')) { |
84 dartdoc.outputDir = | 89 dartdoc.outputDir = |
85 new Path.fromNative(arg.substring('--out='.length)); | 90 new Path.fromNative(arg.substring('--out='.length)); |
86 } else if (arg.startsWith('--include-lib=')) { | 91 } else if (arg.startsWith('--include-lib=')) { |
87 dartdoc.includedLibraries = | 92 dartdoc.includedLibraries = |
88 arg.substring('--include-lib='.length).split(','); | 93 arg.substring('--include-lib='.length).split(','); |
89 } else if (arg.startsWith('--exclude-lib=')) { | 94 } else if (arg.startsWith('--exclude-lib=')) { |
90 dartdoc.excludedLibraries = | 95 dartdoc.excludedLibraries = |
91 arg.substring('--exclude-lib='.length).split(','); | 96 arg.substring('--exclude-lib='.length).split(','); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 names. | 175 names. |
171 | 176 |
172 --exclude-lib=<libs> Use this option to explicitly specify which | 177 --exclude-lib=<libs> Use this option to explicitly specify which |
173 libraries to exclude from the documentation. If | 178 libraries to exclude from the documentation. If |
174 omitted, no libraries are excluded. <libs> is | 179 omitted, no libraries are excluded. <libs> is |
175 comma-separated list of library names. | 180 comma-separated list of library names. |
176 | 181 |
177 --verbose Print verbose information during generation. | 182 --verbose Print verbose information during generation. |
178 '''); | 183 '''); |
179 } | 184 } |
OLD | NEW |