Chromium Code Reviews| 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}')) |