Arguments.read constructor

Arguments.read(
  1. List<String> args
)

Implementation

factory Arguments.read(List<String> args) {
  final arguments = _processArguments(args);
  return Arguments._(
    assetsLocation: arguments[_ArgTypes.input]?.first ?? 'assets',
    outputLocation: arguments[_ArgTypes.output]?.first ?? 'lib/resources',
    package: arguments[_ArgTypes.package]?.first.replaceAll('/', ''),
    withFlavors: arguments[_ArgTypes.withFlavor] != null,
    verbose: arguments[_ArgTypes.verbose] != null,
  );
}