CompilerFlags.parseArgs constructor
CompilerFlags.parseArgs(
- List<
String> args, { - 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,
);
}