func (f *IntSliceFlag) IsRequired() bool {
	return f.Required
}
IsRequired returns whether or not the flag is required
package cli
import (
	"encoding/json"
	"flag"
	"fmt"
	"strconv"
	"strings"
)
type IntSlice struct {
	slice      []int
	hasBeenSet bool
}
func NewIntSlice(defaults ...int) *IntSlice {
	return &IntSlice{slice: append([]int{}, defaults...)}
}
func (i *IntSlice) SetInt(value int) {
	if !i.hasBeenSet {
		i.slice = []int{}
		i.hasBeenSet = true
	}
	i.slice = append(i.slice, value)
}
func (i *IntSlice) Set(value string) error {
	if !i.hasBeenSet {
		i.slice = []int{}
		i.hasBeenSet = true
	}
	if strings.HasPrefix(value, slPfx) {
		_ = json.Unmarshal([]byte(strings.Replace(value, slPfx, "", 1)), &i.slice)
		i.hasBeenSet = true
		return nil
	}
	tmp, err := strconv.ParseInt(value, 0, 64)
	if err != nil {
		return err
	}
	i.slice = append(i.slice, int(tmp))
	return nil
}
func (i *IntSlice) String() string {
	return fmt.Sprintf("%#v", i.slice)
}
func (i *IntSlice) Serialize() string {
	jsonBytes, _ := json.Marshal(i.slice)
	return fmt.Sprintf("%s%s", slPfx, string(jsonBytes))
}
func (i *IntSlice) Value() []int {
	return i.slice
}
func (i *IntSlice) Get() interface{} {
	return *i
}
type IntSliceFlag struct {
	Name        string
	Aliases     []string
	Usage       string
	EnvVars     []string
	FilePath    string
	Required    bool
	Hidden      bool
	Value       *IntSlice
	DefaultText string
	HasBeenSet  bool
}
func (f *IntSliceFlag) IsSet() bool {
	return f.HasBeenSet
}
func (f *IntSliceFlag) String() string {
	return FlagStringer(f)
}
func (f *IntSliceFlag) Names() []string {
	return flagNames(f.Name, f.Aliases)
}