getOptions method

YamlMap getOptions (
  1. Folder root,
  2. {bool crawlUp: false}

Provide the options found in root/AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE. Recursively merge options referenced by an include directive and remove the include directive from the resulting options map. Return an empty options map if the file does not exist.


YamlMap getOptions(Folder root, {bool crawlUp = false}) {
  File optionsFile = getOptionsFile(root, crawlUp: crawlUp);
  if (optionsFile == null) {
    return YamlMap();
  return getOptionsFromFile(optionsFile);