Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 14135007: Add dartdoc to the generated utils snapshot (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/dartdoc/bin/dartdoc.dart
===================================================================
--- sdk/lib/_internal/dartdoc/bin/dartdoc.dart (revision 21335)
+++ sdk/lib/_internal/dartdoc/bin/dartdoc.dart (working copy)
@@ -29,11 +29,11 @@
/**
* Run this from the `lib/_internal/dartdoc` directory.
*/
-main() {
+mainWithOptions(Options options) {
// Need this because ArgParser.getUsage doesn't show command invocation.
final USAGE = 'Usage dartdoc [options] <entrypoint(s)>\n[options] include:';
- final args = new Options().arguments;
+ final args = options.arguments;
final dartdoc = new Dartdoc();
@@ -249,6 +249,10 @@
.whenComplete(() => dartdoc.cleanup());
}
+main() {
+ mainWithOptions(new Options());
+}
+
String _getPackageRoot(List<Uri> entrypoints) {
// Check if there's a `packages` directory in the entry point directory.
var fileEntrypoint = entrypoints.firstWhere(
« sdk/bin/dartdoc ('K') | « sdk/bin/dartdoc ('k') | utils/compiler/compiler.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698