Versions in this module Expand all Collapse all v0 v0.1.0 Aug 23, 2022 Changes in this version + const DefaultTag + const LongNameTag + const RequiredTag + const ShortNameTag + const UsageTag + func Unmarshaler(dec *strdecode.Decoder) func(dst reflect.Value, typ reflect.Type, src []string) error + type Flag struct + Default string + Long string + Required bool + Short string + Usage string + Values []string + func NewFlag(dst interface{}, short, long string, value string, usage string) Flag + func (f Flag) AppendUsage(b []byte) []byte + func (f Flag) Name() string + type FlagSet struct + Flags Flags + Unmarshal func(dst reflect.Value, typ reflect.Type, src []string) error + func (set *FlagSet) Bool(short, long string, value bool, usage string, required bool) *bool + func (set *FlagSet) BoolVar(ptr *bool, short, long string, value bool, usage string, required bool) + func (set *FlagSet) Bytes(short, long string, value []byte, usage string, required bool) *[]byte + func (set *FlagSet) BytesVar(ptr *[]byte, short, long string, value []byte, usage string, required bool) + func (set *FlagSet) Float(short, long string, value float64, usage string, required bool) *float64 + func (set *FlagSet) FloatVar(ptr *float64, short, long string, value float64, usage string, required bool) + func (set *FlagSet) Int(short, long string, value int, usage string, required bool) *int + func (set *FlagSet) Int64(short, long string, value int64, usage string, required bool) *int64 + func (set *FlagSet) Int64Var(ptr *int64, short, long string, value int64, usage string, required bool) + func (set *FlagSet) IntVar(ptr *int, short, long string, value int, usage string, required bool) + func (set *FlagSet) Parse(args []string) (unknown []string, err error) + func (set *FlagSet) ParseStrict(args []string) error + func (set *FlagSet) String(short, long string, value string, usage string, required bool) *string + func (set *FlagSet) StringVar(ptr *string, short, long string, value string, usage string, required bool) + func (set *FlagSet) StructFields(dst interface{}) + func (set *FlagSet) Uint(short, long string, value uint, usage string, required bool) *uint + func (set *FlagSet) Uint64(short, long string, value uint64, usage string, required bool) *uint64 + func (set *FlagSet) Uint64Var(ptr *uint64, short, long string, value uint64, usage string, required bool) + func (set *FlagSet) UintVar(ptr *uint, short, long string, value uint, usage string, required bool) + func (set *FlagSet) Validate() error + func (set *FlagSet) Var(dst interface{}, short, long, value, usage string, required bool) + type Flags []Flag + func (f Flags) AppendUsage(b []byte) []byte + func (f Flags) GetLong(name string) int + func (f Flags) GetShort(name string) int + func (f Flags) Sort() + func (f Flags) Usage() string + type InvalidFlagError struct + Msg string + Name string + Type string + func (err *InvalidFlagError) Error() string