Versions in this module Expand all Collapse all v0 v0.0.1 Mar 2, 2019 Changes in this version + const Bool + const Float + const Int + const Int64 + const Invalid + const String + const Uint + const Uint64 + type Argument struct + Description string + Name string + Recursive bool + Required bool + SupportsStdin bool + Type ArgumentType + Variadic bool + func FileArg(name string, required, variadic bool, description string) Argument + func StringArg(name string, required, variadic bool, description string) Argument + func (a Argument) EnableRecursive() Argument + func (a Argument) EnableStdin() Argument + type ArgumentType int + const ArgFile + const ArgString + type Error struct + Code ErrorType + Message string + func Errorf(code ErrorType, format string, args ...interface{}) Error + func (e *Error) UnmarshalJSON(data []byte) error + func (e Error) Error() string + func (e Error) MarshalJSON() ([]byte, error) + type ErrorType uint + const ErrClient + const ErrFatal + const ErrImplementation + const ErrNormal + const ErrNotFound + type HelpText struct + Arguments string + LongDescription string + Options string + ShortDescription string + Subcommands string + Synopsis string + SynopsisOptionsValues map[string]string + Tagline string + Usage string + type OptMap map[string]interface + type Option interface + Default func() interface{} + Description func() string + Name func() string + Names func() []string + Parse func(str string) (interface{}, error) + Type func() reflect.Kind + WithDefault func(interface{}) Option + func BoolOption(names ...string) Option + func FloatOption(names ...string) Option + func Int64Option(names ...string) Option + func IntOption(names ...string) Option + func NewOption(kind reflect.Kind, names ...string) Option + func StringOption(names ...string) Option + func Uint64Option(names ...string) Option + func UintOption(names ...string) Option + type OptionValue struct + Def Option + Value interface{} + ValueFound bool + func (ov *OptionValue) Bool() (value bool, found bool, err error) + func (ov *OptionValue) Definition() Option + func (ov *OptionValue) Float() (value float64, found bool, err error) + func (ov *OptionValue) Found() bool + func (ov *OptionValue) Int() (value int, found bool, err error) + func (ov *OptionValue) Int64() (value int64, found bool, err error) + func (ov *OptionValue) String() (value string, found bool, err error) + func (ov *OptionValue) Uint() (value uint, found bool, err error) + func (ov *OptionValue) Uint64() (value uint64, found bool, err error)