Make -v count once and accept -vv for debug output (closes #125)
check / check (push) Failing after 2s

urfave/cli before v2.25.5 counted a flag given by its alias twice, so
one -v or --verbose already gave debug output. Bump it to v2.27.7, the
latest v2 release, which counts it once: one -v gives verbose output,
two give debug.

Turn on urfave/cli's UseShortOptionHandling so single-letter flags
combine at the root and in every subcommand; -vv now works as the -v
help text says.

-v and --verbose together stay refused: urfave/cli v2 refuses any flag
given under two of its names.

The bump drops "[arguments...]" from usage lines, so generate and fetch
now name their arguments. Test runs now start at the default log level.

Model: opus-5-5
This commit is contained in:
2026-10-04 07:59:34 +00:00
parent 64eb5cbd40
commit 8f6b15b8ad
4 changed files with 125 additions and 23 deletions
+3 -3
View File
@@ -12,13 +12,13 @@ require (
github.com/pterm/pterm v0.12.35
github.com/spf13/afero v1.8.0
github.com/stretchr/testify v1.8.1
github.com/urfave/cli/v2 v2.23.6
github.com/urfave/cli/v2 v2.27.7
google.golang.org/protobuf v1.28.1
)
require (
github.com/atomicgo/cursor v0.0.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/gookit/color v1.4.2 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
@@ -34,7 +34,7 @@ require (
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect