Versions in this module Expand all Collapse all v1 v1.5.0 Mar 18, 2023 v1.4.1 Mar 18, 2023 Changes in this version + const DisableDescription + const File + const FileList + const Flag + const FlagCounter + const Float + const FloatList + const Int + const IntList + const Selector + const String + const StringList + func IsNilFile(fd *os.File) bool + type Arg interface + GetLname func() string + GetOpts func() *Options + GetParsed func() bool + GetPositional func() bool + GetResult func() interface{} + GetSname func() string + type ArgumentType int + type Command struct + HelpFunc func(c *Command, msg interface{}) string + func (o *Command) ExitOnHelp(b bool) + func (o *Command) File(short string, long string, flag int, perm os.FileMode, opts *Options) *os.File + func (o *Command) FileList(short string, long string, flag int, perm os.FileMode, opts *Options) *[]os.File + func (o *Command) FilePositional(flag int, perm os.FileMode, opts *Options) *os.File + func (o *Command) Flag(short string, long string, opts *Options) *bool + func (o *Command) FlagCounter(short string, long string, opts *Options) *int + func (o *Command) Float(short string, long string, opts *Options) *float64 + func (o *Command) FloatList(short string, long string, opts *Options) *[]float64 + func (o *Command) FloatPositional(opts *Options) *float64 + func (o *Command) Happened() bool + func (o *Command) Help(msg interface{}) string + func (o *Command) Int(short string, long string, opts *Options) *int + func (o *Command) IntList(short string, long string, opts *Options) *[]int + func (o *Command) IntPositional(opts *Options) *int + func (o *Command) List(short string, long string, opts *Options) *[]string + func (o *Command) NewCommand(name string, description string) *Command + func (o *Command) Selector(short string, long string, options []string, opts *Options) *string + func (o *Command) SelectorPositional(allowed []string, opts *Options) *string + func (o *Command) String(short string, long string, opts *Options) *string + func (o *Command) StringList(short string, long string, opts *Options) *[]string + func (o *Command) StringPositional(opts *Options) *string + func (o *Command) Usage(msg interface{}) string + func (o Command) GetArgs() (args []Arg) + func (o Command) GetCommands() []*Command + func (o Command) GetDescription() string + func (o Command) GetName() string + func (o Command) GetParent() *Command + type Options struct + Default interface{} + Help string + Required bool + Validate func(args []string) error + type Parser struct + func NewParser(name string, description string) *Parser + func (o *Parser) DisableHelp() + func (o *Parser) Parse(args []string) error + func (o *Parser) SetHelp(sname, lname string)