Versions in this module Expand all Collapse all v1 v1.0.1 Oct 16, 2022 Changes in this version + var CommandLine = New(os.Args[1:]) + var ErrDuplicateOptions = errors.New("is already in use") + var ErrNotFoundName = errors.New("no command line options found") + var ErrNotPointerType = errors.New("Not pointer type") + var ErrOptionName = errors.New("illegal option name") + var ErrUnsupported = errors.New("unsupported command") + var ErrUnsupportedType = errors.New("Unsupported type") + var ShowUsageDefault = true + func Bind(x interface{}) error + func GetIndex(optName string) uint64 + func IsSetSubcommand(subcommand string) bool + func MustBind(x interface{}) + func MustRegister(x interface{}) + func SetAbout(about string) + func SetVersion(version string) + func StringToBytes(s string) (b []byte) + func Unquote(s string) (string, error) + func Usage() + type Help struct + About string + Args []showOption + Envs []showOption + Flags []showOption + MaxNameLen int + Options []showOption + ProcessName string + ShowUsageDefault bool + Subcommand []showOption + Version string + type Option struct + type ParseFlag struct + func NewParseFlag() *ParseFlag + func (p *ParseFlag) All() *ParseFlag + func (p *ParseFlag) FromFile(fileName string) *ParseFlag + func (p *ParseFlag) OnlyStruct() *ParseFlag + func (p *ParseFlag) Parse() ([]byte, error) + type Screw struct + func New(args []string) *Screw + func (c *Screw) Bind(x interface{}) (err error) + func (c *Screw) GetIndex(optName string) uint64 + func (c *Screw) IsSetSubcommand(subcommand string) bool + func (c *Screw) MustBind(x interface{}) + func (c *Screw) Register(x interface{}) error + func (c *Screw) SetAbout(about string) *Screw + func (c *Screw) SetExit(exit bool) *Screw + func (c *Screw) SetOutput(w io.Writer) *Screw + func (c *Screw) SetProcName(procName string) *Screw + func (c *Screw) SetVersion(version string) *Screw + func (c *Screw) Usage() + type Subcommand struct + type Tag string + func (tag Tag) Get(key string) (value string) + func (tag Tag) Lookup(key string) (value string, ok bool)