Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2021 v0.1.0 Mar 1, 2021 Changes in this version + func AutoRun() error + func BindHandle(cmd string, f func()) error + func BindHandleMap(m map[string]func()) error + func BuildOptions(m map[string]string, prefix ...string) string + func ContainsOpt(name string) bool + func GetArg(index int, def ...string) string + func GetArgAll() []string + func GetArgVar(index int, def ...string) *gvar.Var + func GetOpt(name string, def ...string) string + func GetOptAll() map[string]string + func GetOptVar(name string, def ...string) *gvar.Var + func GetOptWithEnv(key string, def ...interface{}) *gvar.Var + func GetWithEnv(key string, def ...interface{}) *gvar.Var + func Init(args ...string) + func RunHandle(cmd string) error + func Scan(info ...interface{}) string + func Scanf(format string, info ...interface{}) string + type Parser struct + func Parse(supportedOptions map[string]bool, strict ...bool) (*Parser, error) + func ParseWithArgs(args []string, supportedOptions map[string]bool, strict ...bool) (*Parser, error) + func (p *Parser) AutoRun() error + func (p *Parser) BindHandle(cmd string, f func()) error + func (p *Parser) BindHandleMap(m map[string]func()) error + func (p *Parser) ContainsOpt(name string) bool + func (p *Parser) GetArg(index int, def ...string) string + func (p *Parser) GetArgAll() []string + func (p *Parser) GetArgVar(index int, def ...string) *gvar.Var + func (p *Parser) GetOpt(name string, def ...string) string + func (p *Parser) GetOptAll() map[string]string + func (p *Parser) GetOptVar(name string, def ...interface{}) *gvar.Var + func (p *Parser) MarshalJSON() ([]byte, error) + func (p *Parser) RunHandle(cmd string) error