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

Unified Diff: pkg/docgen/bin/docgen.dart

Issue 108473004: Adds a --include-dependent-packages option to docgen (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/bin/docgen.dart
diff --git a/pkg/docgen/bin/docgen.dart b/pkg/docgen/bin/docgen.dart
index d81e5bc7c6373ea09ab81a0b21635dcda2011a6c..7a19f6524fe014d220b915086be3967833346622 100644
--- a/pkg/docgen/bin/docgen.dart
+++ b/pkg/docgen/bin/docgen.dart
@@ -34,7 +34,8 @@ void main(List<String> arguments) {
append: results['append'] && new Directory(results['out']).existsSync(),
introduction: introduction,
out: results['out'],
- excludeLibraries: excludedLibraries);
+ excludeLibraries: excludedLibraries,
+ includeDependentPackages: results['include-dependent-packages']);
}
/**
@@ -84,5 +85,10 @@ ArgParser _initArgParser() {
help: 'Exclude the library by this name from the documentation',
allowMultiple: true,
callback: (libs) => excludedLibraries.addAll(libs));
+ parser.addFlag('include-dependent-packages',
+ help: 'Assumes we are documenting a single package and are running '
+ 'in the directory with its pubspec. Includes documentation for all '
+ 'of its dependent packages.',
+ defaultsTo: false, negatable: false);
return parser;
}
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698