init static method

dynamic init(
  1. List<String> arguments
)

Implementation

static init(List<String> arguments) {
  GlobalVariable.action = _getFormatAction(arguments);
  try {
    GlobalVariable.path = normalize(arguments[2]);
    if (GlobalVariable.path.split(Platform.pathSeparator).length == 1) {
      GlobalVariable.module = GlobalVariable.path;
      GlobalVariable.path = '';
    } else {
      GlobalVariable.module =
          GlobalVariable.path.split(Platform.pathSeparator).last;
    }
    // ignore: empty_catches
  } catch (e) {}
  try {
    GlobalVariable.name = arguments[3];
    // ignore: empty_catches
  } catch (e) {}
}