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

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

Issue 536073002: Make --no-include-sdk the default for docgen (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'package:path/path.dart' as path; 9 import 'package:path/path.dart' as path;
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 }); 101 });
102 parser.addFlag('verbose', abbr: 'v', 102 parser.addFlag('verbose', abbr: 'v',
103 help: 'Output more logging information.', negatable: false, 103 help: 'Output more logging information.', negatable: false,
104 callback: (verbose) { 104 callback: (verbose) {
105 if (verbose) Logger.root.level = Level.FINEST; 105 if (verbose) Logger.root.level = Level.FINEST;
106 }); 106 });
107 parser.addFlag('include-private', 107 parser.addFlag('include-private',
108 help: 'Flag to include private declarations.', negatable: false); 108 help: 'Flag to include private declarations.', negatable: false);
109 parser.addFlag('include-sdk', 109 parser.addFlag('include-sdk',
110 help: 'Flag to parse SDK Library files.', 110 help: 'Flag to parse SDK Library files.',
111 defaultsTo: true, 111 defaultsTo: false,
112 negatable: true); 112 negatable: true);
113 parser.addFlag('parse-sdk', 113 parser.addFlag('parse-sdk',
114 help: 'Parses the SDK libraries only.', 114 help: 'Parses the SDK libraries only.',
115 defaultsTo: false, negatable: false); 115 defaultsTo: false, negatable: false);
116 parser.addOption('package-root', 116 parser.addOption('package-root',
117 help: 'Sets the package root of the library being analyzed.'); 117 help: 'Sets the package root of the library being analyzed.');
118 parser.addFlag('compile', help: 'Clone the documentation viewer repo locally ' 118 parser.addFlag('compile', help: 'Clone the documentation viewer repo locally '
119 '(if not already present) and compile with dart2js', defaultsTo: false, 119 '(if not already present) and compile with dart2js', defaultsTo: false,
120 negatable: false); 120 negatable: false);
121 parser.addFlag('serve', help: 'Clone the documentation viewer repo locally ' 121 parser.addFlag('serve', help: 'Clone the documentation viewer repo locally '
(...skipping 24 matching lines...) Expand all
146 'To start at some other page, e.g. for a package, provide the name ' 146 'To start at some other page, e.g. for a package, provide the name '
147 'of the package in this argument, e.g. --start-page=intl will make ' 147 'of the package in this argument, e.g. --start-page=intl will make '
148 'the start page of the viewer be the intl package.', 148 'the start page of the viewer be the intl package.',
149 defaultsTo: null); 149 defaultsTo: null);
150 parser.addFlag('indent-json', 150 parser.addFlag('indent-json',
151 help: 'Indents each level of JSON output by two spaces', 151 help: 'Indents each level of JSON output by two spaces',
152 defaultsTo: false, negatable: true); 152 defaultsTo: false, negatable: true);
153 153
154 return parser; 154 return parser;
155 } 155 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698