toArgs method
Convert this options object to the equivalent command-line arguments.
Implementation
List<String> toArgs({bool includeTasks = true}) {
return [
'-l',
(nameByLevel[logLevel] ?? 'info').toLowerCase(),
if (!colorfulLog) '--no-color',
if (forceTasks) '-f',
if (!parallelizeTasks) '--no-parallel-tasks',
if (showTasks) '-s',
if (showTaskGraph) '-g',
if (resetCache) '-z',
if (showVersion) '-v',
if (showHelp) '-h',
if (!logBuildTime) '--no-log-build-time',
if (includeTasks) ...tasksInvocation,
];
}