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

Unified Diff: utils/apidoc/apidoc.dart

Issue 13421002: Changed pkg option to package-root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: utils/apidoc/apidoc.dart
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart
index 5405e3a7233c26f995614c55be3e409a7bb3a8cf..e1b9619d5d666313d3d0942bc42dd1a6d91bfdde 100644
--- a/utils/apidoc/apidoc.dart
+++ b/utils/apidoc/apidoc.dart
@@ -37,7 +37,7 @@ void main() {
List<String> excludedLibraries = <String>[];
List<String> includedLibraries = <String>[];
- Path pkgPath;
+ Path packageRoot;
String version;
// Parse the command-line arguments.
@@ -64,8 +64,8 @@ void main() {
includedLibraries.add(arg.substring('--include-lib='.length));
} else if (arg.startsWith('--out=')) {
outputDir = new Path(arg.substring('--out='.length));
- } else if (arg.startsWith('--pkg=')) {
- pkgPath = new Path(arg.substring('--pkg='.length));
+ } else if (arg.startsWith('--package-root=')) {
+ packageRoot = new Path(arg.substring('--package-root='.length));
} else if (arg.startsWith('--version=')) {
version = arg.substring('--version='.length);
} else {
@@ -147,7 +147,7 @@ void main() {
// TODO(amouravski): make apidoc use roughly the same flow as bin/dartdoc.
Future.wait([copiedStatic, copiedApiDocStatic, htmlDiff])
- .then((_) => apidoc.documentLibraries(apidocLibraries, libPath, pkgPath))
+ .then((_) => apidoc.documentLibraries(apidocLibraries, libPath, packageRoot))
Jacob 2013/04/02 01:03:41 >80 chars
Andrei Mouravski 2013/04/02 01:05:47 Done.
.then((_) => compileScript(mode, outputDir, libPath))
.then((_) => print(apidoc.status))
.catchError((e) => print('Error: generation failed: ${e.error}'))

Powered by Google App Engine
This is Rietveld 408576698