parse method

void parse(
  1. Iterable<String> args
)

Implementation

void parse(Iterable<String> args) {
  final parser = createParser(args);
  parser.parse(args);

  if (_configurationFile != null) {
    final yaml = File(_configurationFile).readAsStringSync();
    configuration = TranslationConfig.fromYaml(
      yaml,
      _configurationFile,
    );

    projectName = configuration.projectName ?? projectName;
    outputDir = configuration.outputDir ?? outputDir;
    formatKey = configuration.format ?? formatKey;
  }
}