Versions in this module Expand all Collapse all v1 v1.4.4 Jan 2, 2024 Changes in this version + var ErrHelp = errors.New("help requested by user") + var ErrVersion = errors.New("version requested by user") + func Parse(dest ...interface{}) error + func Register(dest ...interface{}) + type Config struct + Exit func(int) + IgnoreDefault bool + IgnoreEnv bool + Out io.Writer + Program string + StrictSubcommands bool + type Described interface + Description func() string + type Epilogued interface + Epilogue func() string + type Parser struct + func MustParse(dest ...interface{}) *Parser + func NewParser(config Config, dests ...interface{}) (*Parser, error) + func (p *Parser) Fail(msg string) + func (p *Parser) FailSubcommand(msg string, subcommand ...string) error + func (p *Parser) MustParse(args []string) + func (p *Parser) Parse(args []string) error + func (p *Parser) Subcommand() interface{} + func (p *Parser) SubcommandNames() []string + func (p *Parser) WriteHelp(w io.Writer) + func (p *Parser) WriteHelpForSubcommand(w io.Writer, subcommand ...string) error + func (p *Parser) WriteUsage(w io.Writer) + func (p *Parser) WriteUsageForSubcommand(w io.Writer, subcommand ...string) error + type Versioned interface + Version func() string v1.4.3-register-3 Jan 2, 2024