File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1431,10 +1431,14 @@ Future<List<DartdocOption>> createDartdocOptions(
1431
1431
mustExist: true ),
1432
1432
DartdocOptionSyntheticOnly <String >('inputDir' ,
1433
1433
(DartdocSyntheticOption <String > option, Folder dir) {
1434
+ late String inputDirDefault;
1434
1435
if (option.parent['sdkDocs' ].valueAt (dir)) {
1435
- return option.parent['sdkDir' ].valueAt (dir);
1436
+ inputDirDefault = option.parent['sdkDir' ].valueAt (dir);
1437
+ } else {
1438
+ inputDirDefault = option.parent['input' ].valueAt (dir);
1436
1439
}
1437
- return option.parent['input' ].valueAt (dir);
1440
+ return resourceProvider.pathContext
1441
+ .canonicalizeWithTilde (inputDirDefault);
1438
1442
}, resourceProvider,
1439
1443
help: 'Path to source directory (with override if --sdk-docs)' ,
1440
1444
optionIs: OptionKind .dir,
You can’t perform that action at this time.
0 commit comments