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(
14311431 mustExist: true ),
14321432 DartdocOptionSyntheticOnly <String >('inputDir' ,
14331433 (DartdocSyntheticOption <String > option, Folder dir) {
1434+ late String inputDirDefault;
14341435 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);
14361439 }
1437- return option.parent['input' ].valueAt (dir);
1440+ return resourceProvider.pathContext
1441+ .canonicalizeWithTilde (inputDirDefault);
14381442 }, resourceProvider,
14391443 help: 'Path to source directory (with override if --sdk-docs)' ,
14401444 optionIs: OptionKind .dir,
You can’t perform that action at this time.
0 commit comments