@@ -192,7 +192,8 @@ main(List<String> arguments) async {
192192 PackageMeta packageMeta = new PackageMeta .fromDir (inputDir);
193193
194194 if (packageMeta == null ) {
195- stderr.writeln (' fatal error: Unable to generate documentation: no pubspec.yaml found' );
195+ stderr.writeln (
196+ ' fatal error: Unable to generate documentation: no pubspec.yaml found' );
196197 exit (1 );
197198 }
198199
@@ -212,7 +213,6 @@ main(List<String> arguments) async {
212213 }
213214 }
214215
215-
216216 logInfo ("Generating documentation for '${packageMeta }' into "
217217 "${outputDir .absolute .path }${Platform .pathSeparator }" );
218218
@@ -221,7 +221,6 @@ main(List<String> arguments) async {
221221 footerFilePaths: footerFilePaths,
222222 footerTextFilePaths: footerTextFilePaths,
223223 faviconPath: args['favicon' ],
224- displayAsPackages: args['use-categories' ],
225224 prettyIndexJson: args['pretty-index-json' ]);
226225
227226 for (var generator in generators) {
@@ -311,10 +310,8 @@ ArgParser _createArgsParser() {
311310 parser.addFlag ('show-progress' ,
312311 help: 'Display progress indications to console stdout' , negatable: false );
313312 parser.addOption ('sdk-readme' ,
314- help:
315- 'Path to the SDK description file. Deprecated (ignored)' );
316- parser.addOption ('input' ,
317- help: 'Path to source directory.' );
313+ help: 'Path to the SDK description file. Deprecated (ignored)' );
314+ parser.addOption ('input' , help: 'Path to source directory.' );
318315 parser.addOption ('output' ,
319316 help: 'Path to output directory.' , defaultsTo: defaultOutDir);
320317 parser.addMultiOption ('header' ,
@@ -349,22 +346,18 @@ ArgParser _createArgsParser() {
349346 help: 'A path to a favicon for the generated docs.' );
350347 parser.addFlag ('use-categories' ,
351348 help:
352- 'Group libraries from the same package in the libraries sidebar. (deprecated, replaced by display-as-packages)' ,
353- negatable: false ,
354- defaultsTo: false );
355- parser.addFlag ('display-as-packages' ,
356- help: 'Group libraries from the same package in the libraries sidebar.' ,
349+ 'Group libraries from the same package in the libraries sidebar. (deprecated, ignored)' ,
357350 negatable: false ,
358351 defaultsTo: false );
359352 parser.addMultiOption ('category-order' ,
360353 help:
361- 'A list of package names to place first when --display-as-packages is '
362- 'set. Unmentioned categories are sorted after these. (deprecated, replaced by package-order)' ,
354+ 'A list of package names to place first when grouping libraries in packages. '
355+ 'Unmentioned categories are sorted after these. (deprecated, replaced by package-order)' ,
363356 splitCommas: true );
364357 parser.addMultiOption ('package-order' ,
365358 help:
366- 'A list of package names to place first when --display-as-packages is '
367- 'set. Unmentioned categories are sorted after these.' ,
359+ 'A list of package names to place first when grouping libraries in packages. '
360+ 'Unmentioned categories are sorted after these.' ,
368361 splitCommas: true );
369362 parser.addFlag ('auto-include-dependencies' ,
370363 help:
0 commit comments