dearchap
dearchap
@suzuki-shunsuke Do you think adding the lychee github action https://github.com/lycheeverse/lychee-action to our workflow would help detect this. ?
@Skeeve You can set the HideVersion in command to disable version flag
The VersionFlag is exported by the cli package for application usage. So you can sets its Aliases to whatever you want or remove them altogether
Can you share the code you tried ?
@Skeeve Here's an example ``` package main import ( "context" "log" "os" "github.com/urfave/cli/v3" ) func main() { val := true app := &cli.Command{ Version: "0.10.1", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "v",...
@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.
@marwan-at-work want to make a PR for me to review for this ?
You could probably add a helper function in Command to list number of non help commands. That function needs to be exported for use in the template
@deregtd Would you like to test the PR and report back ?
@Skeeve This looks very much like #1737 which was fixed in v2 but not ported to v3. Think you can make a PR ?