Closed zx8 closed 6 months ago
Info:
v3.0.0-alpha7
Code
package main import ( "context" "log" "os" "github.com/urfave/cli/v3" ) func main() { cmd := &cli.Command{ Name: "example", Flags: []cli.Flag{ &cli.StringFlag{ Name: "foo", Aliases: []string{"bar"}, Required: true, }, }, } if err := cmd.Run(context.Background(), os.Args); err != nil { log.Fatal(err) } }
Expected
$ go run . <snip> Required flag "foo" not set
Actual
$ go run . <snip> Required flag "bar" not set
@zx8 can you test with PR fix ?
@dearchap Confirmed the linked PR fixes the issue. 👍
Info:
v3.0.0-alpha7
Code
Expected
Actual