From ed3e95f21d462f8789c8a0c75eefa211baad4960 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Mon, 23 Sep 2024 16:10:00 +0800 Subject: [PATCH] -q work for config print --- internal/option.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/option.go b/internal/option.go index 27b7f9c..772f23c 100644 --- a/internal/option.go +++ b/internal/option.go @@ -393,7 +393,9 @@ func (opt *Option) NewRunner() (*Runner, error) { r.Probes = strings.Split(opt.OutputProbe, ",") } - fmt.Println(opt.PrintConfig(r)) + if !opt.Quiet { + fmt.Println(opt.PrintConfig(r)) + } // init output file if opt.OutputFile != "" {