| OLD | NEW |
| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 help: 'Same as output-format=yaml.', negatable: false); | 48 help: 'Same as output-format=yaml.', negatable: false); |
| 49 parser.addFlag('json', abbr: 'j', | 49 parser.addFlag('json', abbr: 'j', |
| 50 help: 'Same as output-format=json.', negatable: false); | 50 help: 'Same as output-format=json.', negatable: false); |
| 51 parser.addFlag('include-private', | 51 parser.addFlag('include-private', |
| 52 help: 'Flag to include private declarations.', negatable: false); | 52 help: 'Flag to include private declarations.', negatable: false); |
| 53 parser.addFlag('include-sdk', | 53 parser.addFlag('include-sdk', |
| 54 help: 'Flag to parse SDK Library files.', negatable: false); | 54 help: 'Flag to parse SDK Library files.', negatable: false); |
| 55 parser.addFlag('parse-sdk', | 55 parser.addFlag('parse-sdk', |
| 56 help: 'Parses the SDK libraries only.', | 56 help: 'Parses the SDK libraries only.', |
| 57 defaultsTo: false, negatable: false); | 57 defaultsTo: false, negatable: false); |
| 58 parser.addOption('package-root', |
| 59 help: "Sets the package root of the library being analyzed."); |
| 58 | 60 |
| 59 return parser; | 61 return parser; |
| 60 } | 62 } |
| OLD | NEW |