@@ -541,7 +541,7 @@ class DartdocOptionArgSynth<T> extends DartdocOption<T>
541
541
bool hide = false ,
542
542
bool isDir = false ,
543
543
bool isFile = false ,
544
- bool negatable,
544
+ bool negatable = false ,
545
545
bool splitCommas})
546
546
: super ._(name, null , help, isDir, isFile, mustExist, null ) {
547
547
_hide = hide;
@@ -672,7 +672,7 @@ class DartdocOptionArgOnly<T> extends DartdocOption<T>
672
672
bool hide = false ,
673
673
bool isDir = false ,
674
674
bool isFile = false ,
675
- bool negatable,
675
+ bool negatable = false ,
676
676
bool splitCommas})
677
677
: super ._(name, defaultsTo, help, isDir, isFile, mustExist, null ) {
678
678
_hide = hide;
@@ -707,7 +707,7 @@ class DartdocOptionArgFile<T> extends DartdocOption<T>
707
707
bool hide = false ,
708
708
bool isDir = false ,
709
709
bool isFile = false ,
710
- bool negatable,
710
+ bool negatable = false ,
711
711
bool parentDirOverridesChild: false ,
712
712
bool splitCommas})
713
713
: super ._(name, defaultsTo, help, isDir, isFile, mustExist, null ) {
@@ -1045,7 +1045,7 @@ abstract class _DartdocArgOption<T> implements DartdocOption<T> {
1045
1045
defaultsTo: defaultsTo as bool ,
1046
1046
help: help,
1047
1047
hide: hide,
1048
- negatable: negatable);
1048
+ negatable: negatable ?? false );
1049
1049
} else if (_isInt || _isDouble || _isString) {
1050
1050
argParser.addOption (argName,
1051
1051
abbr: abbr,
@@ -1241,8 +1241,8 @@ Future<List<DartdocOption>> createDartdocOptions() async {
1241
1241
mustExist: true ),
1242
1242
new DartdocOptionArgOnly <bool >('hideSdkText' , false ,
1243
1243
hide: true ,
1244
- help:
1245
- 'Drop all text for SDK components. Helpful for integration tests for dartdoc, probably not useful for anything else.' ,
1244
+ help: 'Drop all text for SDK components. Helpful for integration '
1245
+ 'tests for dartdoc, probably not useful for anything else.' ,
1246
1246
negatable: true ),
1247
1247
new DartdocOptionArgFile <List <String >>('include' , [],
1248
1248
help: 'Library names to generate docs for.' , splitCommas: true ),
@@ -1256,7 +1256,8 @@ Future<List<DartdocOption>> createDartdocOptions() async {
1256
1256
new DartdocOptionArgOnly <bool >('includeSource' , true ,
1257
1257
help: 'Show source code blocks.' , negatable: true ),
1258
1258
new DartdocOptionArgOnly <bool >('injectHtml' , false ,
1259
- help: 'Allow the use of {@inject-html} directive to inject raw HTML.' ),
1259
+ help: 'Allow the use of the {@inject-html} directive to inject raw '
1260
+ 'HTML into dartdoc output.' ),
1260
1261
new DartdocOptionArgOnly <String >('input' , Directory .current.path,
1261
1262
isDir: true , help: 'Path to source directory' , mustExist: true ),
1262
1263
new DartdocOptionSyntheticOnly <String >('inputDir' ,
@@ -1326,7 +1327,7 @@ Future<List<DartdocOption>> createDartdocOptions() async {
1326
1327
'A list of package names to place first when grouping libraries in packages. '
1327
1328
'Unmentioned packages are sorted after these.' ),
1328
1329
new DartdocOptionArgOnly <bool >('sdkDocs' , false ,
1329
- help: 'Generate ONLY the docs for the Dart SDK.' , negatable : false ),
1330
+ help: 'Generate ONLY the docs for the Dart SDK.' ),
1330
1331
new DartdocOptionArgSynth <String >('sdkDir' ,
1331
1332
(DartdocSyntheticOption <String > option, Directory dir) {
1332
1333
if (! option.parent['sdkDocs' ].valueAt (dir) &&
@@ -1344,7 +1345,7 @@ Future<List<DartdocOption>> createDartdocOptions() async {
1344
1345
new DartdocOptionArgFile <bool >('showUndocumentedCategories' , false ,
1345
1346
help: "Label categories that aren't documented" , negatable: true ),
1346
1347
new DartdocOptionArgOnly <bool >('showWarnings' , false ,
1347
- help: 'Display all warnings.' , negatable : false ),
1348
+ help: 'Display all warnings.' ),
1348
1349
new DartdocOptionSyntheticOnly <PackageMeta >('topLevelPackageMeta' ,
1349
1350
(DartdocSyntheticOption <PackageMeta > option, Directory dir) {
1350
1351
PackageMeta packageMeta = new PackageMeta .fromDir (
@@ -1360,8 +1361,7 @@ Future<List<DartdocOption>> createDartdocOptions() async {
1360
1361
return packageMeta;
1361
1362
}, help: 'PackageMeta object for the default package.' ),
1362
1363
new DartdocOptionArgOnly <bool >('useCategories' , true ,
1363
- help: 'Display categories in the sidebar of packages' ,
1364
- negatable: false ),
1364
+ help: 'Display categories in the sidebar of packages' ),
1365
1365
new DartdocOptionArgOnly <bool >('validateLinks' , true ,
1366
1366
help:
1367
1367
'Runs the built-in link checker to display Dart context aware warnings for broken links (slow)' ,
0 commit comments