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

Side by Side Diff: pkg/docgen/bin/docgen.dart

Issue 23003010: Appending working for library_list.json (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:args/args.dart'; 7 import 'package:args/args.dart';
8 import 'package:logging/logging.dart'; 8 import 'package:logging/logging.dart';
9 9
10 import '../lib/docgen.dart'; 10 import '../lib/docgen.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 logger.info(USAGE); 42 logger.info(USAGE);
43 exit(0); 43 exit(0);
44 } 44 }
45 }); 45 });
46 parser.addFlag('verbose', abbr: 'v', 46 parser.addFlag('verbose', abbr: 'v',
47 help: 'Output more logging information.', negatable: false, 47 help: 'Output more logging information.', negatable: false,
48 callback: (verbose) { 48 callback: (verbose) {
49 if (verbose) Logger.root.level = Level.FINEST; 49 if (verbose) Logger.root.level = Level.FINEST;
50 }); 50 });
51 parser.addFlag('json', abbr: 'j', 51 parser.addFlag('json', abbr: 'j',
52 help: 'Outputs to JSON. Files are outputted to YAML by default.', 52 help: 'Outputs to JSON. Files are outputted to YAML by default. '
53 'If --append is used, it takes the file-format of the previous '
54 'run stated in library_list.json ignoring the flag.',
53 negatable: true); 55 negatable: true);
54 parser.addFlag('include-private', 56 parser.addFlag('include-private',
55 help: 'Flag to include private declarations.', negatable: false); 57 help: 'Flag to include private declarations.', negatable: false);
56 parser.addFlag('include-sdk', 58 parser.addFlag('include-sdk',
57 help: 'Flag to parse SDK Library files.', negatable: false); 59 help: 'Flag to parse SDK Library files.', negatable: false);
58 parser.addFlag('parse-sdk', 60 parser.addFlag('parse-sdk',
59 help: 'Parses the SDK libraries only.', 61 help: 'Parses the SDK libraries only.',
60 defaultsTo: false, negatable: false); 62 defaultsTo: false, negatable: false);
61 parser.addOption('package-root', 63 parser.addOption('package-root',
62 help: 'Sets the package root of the library being analyzed.'); 64 help: 'Sets the package root of the library being analyzed.');
63 parser.addFlag('append', 65 parser.addFlag('append',
64 help: 'Append to the docs folder, library_list.txt and index.txt', 66 help: 'Append to the docs folder, library_list.json and index.txt',
65 defaultsTo: false, negatable: false); 67 defaultsTo: false, negatable: false);
66 parser.addOption('introduction', 68 parser.addOption('introduction',
67 help: 'Adds the provided markdown text file as the introduction' 69 help: 'Adds the provided markdown text file as the introduction'
68 ' for the outputted documentation.', defaultsTo: ''); 70 ' for the outputted documentation.', defaultsTo: '');
69 71
70 return parser; 72 return parser;
71 } 73 }
OLDNEW
« no previous file with comments | « pkg/docgen/README.md ('k') | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698