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

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 21414)
+++ 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() {
Andrei Mouravski 2013/04/16 20:19:09 main() should go at the top. Also, add a doc comm
ricow1 2013/06/03 11:44:46 Done.
+ mainWithOptions(new Options());
+}
+
String _getPackageRoot(List<Uri> entrypoints) {
// Check if there's a `packages` directory in the entry point directory.
var fileEntrypoint = entrypoints.firstWhere(

Powered by Google App Engine
This is Rietveld 408576698