Post-porting fixes for v3

This commit is contained in:
2022-10-03 10:06:01 -04:00
parent 5db9db6d38
commit f8faf77e43
9 changed files with 690 additions and 196 deletions

View File

@@ -194,6 +194,15 @@ func (f *UintSliceFlag) stringify() string {
return stringifySliceFlag(f.Usage, f.Names(), defaultVals)
}
// RunAction executes flag action if set
func (f *UintSliceFlag) RunAction(c *Context) error {
if f.Action != nil {
return f.Action(c, c.UintSlice(f.Name))
}
return nil
}
// UintSlice looks up the value of a local UintSliceFlag, returns
// nil if not found
func (cCtx *Context) UintSlice(name string) []uint {