Pass color and verbosity args to printer (fix #49)

This commit is contained in:
Jibé Barth
2020-05-31 12:32:43 +02:00
parent 76796ffc67
commit 73f56e58a5

View File

@ -21,7 +21,7 @@ final class AddsDefaults
public static function to(array $arguments): array
{
if (!array_key_exists('printer', $arguments)) {
$arguments['printer'] = new Printer();
$arguments['printer'] = new Printer(null, $arguments['verbose'] ?? false, $arguments['colors'] ?? 'always');
}
return $arguments;