public void makeOptionsObjects() {
      cfOptions = new CfOptions();
      cfOptions.positionInfo = positionInfo;
      cfOptions.localInfo = localInfo;
      cfOptions.strictNameCheck = strictNameCheck;
      cfOptions.optimize = optimize;
      cfOptions.optimizeListFile = optimizeListFile;
      cfOptions.dontOptimizeListFile = dontOptimizeListFile;
      cfOptions.statistics = statistics;

      if (warnings) {
        cfOptions.warn = context.err;
      } else {
        cfOptions.warn = context.noop;
      }

      dexOptions = new DexOptions(context.err);
      dexOptions.minSdkVersion = minSdkVersion;
      dexOptions.forceJumbo = forceJumbo;
      dexOptions.allowAllInterfaceMethodInvokes = allowAllInterfaceMethodInvokes;
    }
Copies relevant arguments over into CfOptions and DexOptions instances.
android/android_framework/dex-maker/src/main/java/com/android/dx/command/dexer/Main.java