UniAPIOptions.fromParser constructor

UniAPIOptions.fromParser(
  1. ArgResults results
)

Implementation

factory UniAPIOptions.fromParser(ArgResults results) {
  final ret = UniAPIOptions();
  ret.projectPath = getParams(results, inputOption);

  ret.javaOutputPath = getParams(results, javaOutOption);
  ret.javaPackageName = getParams(results, javaPackageOption);
  ret.javaUniAPIPrefix = getParams(results, uniapiPrefixOption);

  ret.objcOutput = getParams(results, ocOutOption);
  ret.objcUniAPIPrefix = getParams(results, uniapiPrefixOption);

  ret.tempDir = getParams(results, tempDirOption);
  ret.dartOutput = getParams(results, dartOutOption);

  kEnableNullSafety = getParams(results, dartNullSafetyOption) != 'false';
  ret.dartNullSafety = kEnableNullSafety;
  return ret;
}