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

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

Issue 21184003: Added a flag --append to docgen. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')
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 d10c325f0ce0127d3670842a6c330755dce4628f..48b9071d1dc97a943624be2a2e4390c824b679d1 100644
--- a/pkg/docgen/bin/docgen.dart
+++ b/pkg/docgen/bin/docgen.dart
@@ -22,7 +22,8 @@ void main() {
outputToYaml: !results['json'],
includePrivate: results['include-private'],
includeSdk: results['parse-sdk'] || results['include-sdk'],
- parseSdk: results['parse-sdk']);
+ parseSdk: results['parse-sdk'],
+ append: results['append'] && new Directory('docs').existsSync());
}
/**
@@ -57,6 +58,9 @@ ArgParser _initArgParser() {
defaultsTo: false, negatable: false);
parser.addOption('package-root',
help: "Sets the package root of the library being analyzed.");
+ parser.addFlag('append',
+ help: 'Append to the docs folder, library_list.txt and index.txt',
+ defaultsTo: false, negatable: false);
return parser;
}
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698