cmd/mbf: verbose by default
All checks were successful
Test / Create distribution (push) Successful in 49s
Test / Sandbox (push) Successful in 2m41s
Test / Hakurei (push) Successful in 3m54s
Test / ShareFS (push) Successful in 3m54s
Test / Hpkg (push) Successful in 4m47s
Test / Sandbox (race detector) (push) Successful in 5m6s
Test / Hakurei (race detector) (push) Successful in 6m18s
Test / Flake checks (push) Successful in 1m43s

It usually does not make sense to use this without verbose.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-26 02:12:56 +09:00
parent 763d2572fe
commit 490471d22b

View File

@@ -47,13 +47,13 @@ func main() {
}() }()
var ( var (
flagVerbose bool flagQuiet bool
flagCures int flagCures int
flagBase string flagBase string
flagTShift int flagTShift int
) )
c := command.New(os.Stderr, log.Printf, "mbf", func([]string) (err error) { c := command.New(os.Stderr, log.Printf, "mbf", func([]string) (err error) {
msg.SwapVerbose(flagVerbose) msg.SwapVerbose(!flagQuiet)
var base *check.Absolute var base *check.Absolute
if flagBase, err = filepath.Abs(flagBase); err != nil { if flagBase, err = filepath.Abs(flagBase); err != nil {
@@ -72,9 +72,9 @@ func main() {
} }
return return
}).Flag( }).Flag(
&flagVerbose, &flagQuiet,
"v", command.BoolFlag(false), "q", command.BoolFlag(false),
"Print cure messages to the console", "Do not print cure messages",
).Flag( ).Flag(
&flagCures, &flagCures,
"cures", command.IntFlag(0), "cures", command.IntFlag(0),