CompilerFlags.parseArgs constructor

CompilerFlags.parseArgs(
  1. List<String> args, {
  2. CompilerFlags defaultTo = const CompilerFlags(),
})

Creates flags by parsing command-line arguments.

Failures are reported to logger.

Implementation

factory CompilerFlags.parseArgs(
  List<String> args, {
  CompilerFlags defaultTo = const CompilerFlags(),
}) {
  final results = _argParser.parse(args);
  return CompilerFlags.parseRaw(
    results,
    defaultTo,
  );
}