[x] Are you running the latest v2 release? The list of releases is here.
[x] Did you check the manual for your release? The v2 manual is here
[x] Did you perform a search about this problem? Here's the GitHub guide about searching.
Dependency Management
My project is using go modules.
Describe the bug
Action functions do not get called on cli.UintSliceFlag flags when set. This is because it does not have a RunAction(*Context) error function as required by the ActionableFlag interface
To reproduce
Write a simple program that uses the flag as shown below:
&cli.UintSliceFlag{
Action: func(ctx *cli.Context, nodeNumbers []uint) error {
fmt.Println("I am not called")
return nil
}
}
My urfave/cli version is
v2.26.0
Checklist
Dependency Management
Describe the bug
Action functions do not get called on
cli.UintSliceFlag
flags when set. This is because it does not have aRunAction(*Context) error
function as required by theActionableFlag
interfaceTo reproduce
Write a simple program that uses the flag as shown below:
Want to fix this yourself?
Depends on effort required
Run
go version
and paste its output hereRun
go env
and paste its output here