DartdocOptionContext.fromDefaultContextLocation constructor

DartdocOptionContext.fromDefaultContextLocation(
  1. DartdocOptionSet optionSet,
  2. ResourceProvider resourceProvider
)

Build a DartdocOptionContext via the 'inputDir' command line option.

Implementation

DartdocOptionContext.fromDefaultContextLocation(
    this.optionSet, ResourceProvider resourceProvider) {
  var current = resourceProvider.pathContext.current;
  String inputDir =
      optionSet['inputDir'].valueAt(resourceProvider.getFolder(current)) ??
          current;
  context = resourceProvider.getFolder(inputDir);
}