diff --git a/v1/printer_options.go b/v1/printer_options.go index 1c9dba1..9ae6ab6 100644 --- a/v1/printer_options.go +++ b/v1/printer_options.go @@ -31,7 +31,7 @@ func (o *PrinterOptions) WithStreams(s IOStreams) *PrinterOptions { // WithDefaultOutput sets a default output format if one is not provided through a flag value func (o *PrinterOptions) WithDefaultOutput(output string) *PrinterOptions { - o.OutputFormat = &output + o.DefaultOutputFormat = &output return o }