diff --git a/cmd/cmd.go b/cmd/cmd.go index bc70095c..5f2afb0d 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -542,7 +542,11 @@ func generateInteractive(cmd *cobra.Command, model string) error { return err } - var format string + format, err := cmd.Flags().GetString("format") + if err != nil { + return err + } + var wordWrap bool termType := os.Getenv("TERM") if termType == "xterm-256color" {