Stephan Hradek

Results 135 comments of Stephan Hradek

I was thinking about how to implement some automatics which would render normal paragraphs as reflowable and other stuff as monospaced, preformatted, but I didn't start any coding yet. Still...

I know. But given I **want* the automatic version command AND a verbose flag, I would have thought that the automatic version refrains from setting "v" as an alias.

Can you please elaborate on that? I tried to do that, but given my rudimentary go skills, I failed.

> Can you share the code you tried ? Sure: https://play.golang.com/p/zfKOggluwK2 ```go package main import ( "context" "fmt" "os" "github.com/urfave/cli/v3" ) func main() { cmd := &cli.Command{ Name: "tester", Usage:...

> @Skeeve Here's an example Ah! Okay! I see how you did it. For me, as you can see in my example, "v" is the alias for "verbose". In that...

So the Solution ist to use "v" as the name and "verbose" as an alias?

> @Skeeve Its upto you. You can disable version command or enable version command and change its name/aliases to whatever you want and add your verbose flag with whatever name/alias....

> Think you can make a PR ? I doubt it :( I THINK the issue might be due to these two lines: https://github.com/urfave/cli/blob/c4cd0a51cc113a90eca318cc8f7d328f05a5f2b7/flag_impl.go#L169 and https://github.com/urfave/cli/blob/c4cd0a51cc113a90eca318cc8f7d328f05a5f2b7/flag_bool.go#L66 But I'm not so...

> No one has requested count for non-bool flags. Not sure when I can get around to a fix though. That "fix" (if it is a fix) should be easy....

I would like to, but I can't. I have the slight feeling there is more wrong to it, than I first thought. Here are my observations. 1. Count() returns the...