Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2020 Changes in this version + var CommandLine = NewFlagSet(os.Args[0], flag.ExitOnError) + var Usage = CommandLine.Usage + func Arg(i int) string + func Args() []string + func Bool(name string, value bool, usage string) *bool + func BoolVar(p *bool, name string, value bool, usage string) + func Duration(name string, value time.Duration, usage string) *time.Duration + func DurationVar(p *time.Duration, name string, value time.Duration, usage string) + func Float64(name string, value float64, usage string) *float64 + func Float64Var(p *float64, name string, value float64, usage string) + func Int(name string, value int, usage string) *int + func Int64(name string, value int64, usage string) *int64 + func Int64Var(p *int64, name string, value int64, usage string) + func IntVar(p *int, name string, value int, usage string) + func NArg() int + func NFlag() int + func Parse() error + func Parsed() bool + func PrintDefaults() + func Set(name, value string) error + func SetOutput(output io.Writer) + func String(name string, value string, usage string) *string + func StringVar(p *string, name string, value string, usage string) + func Uint(name string, value uint, usage string) *uint + func Uint64(name string, value uint64, usage string) *uint64 + func Uint64Var(p *uint64, name string, value uint64, usage string) + func UintVar(p *uint, name string, value uint, usage string) + func Var(value flag.Value, name string, usage string) + type Flag struct + Name string + Rune rune + Usage string + Value flag.Value + func Lookup(name string) *Flag + type FlagSet struct + Usage func() + func NewFlagSet(name string, err flag.ErrorHandling) *FlagSet + func (set *FlagSet) Arg(i int) string + func (set *FlagSet) Args() []string + func (set *FlagSet) Bool(name string, value bool, usage string) *bool + func (set *FlagSet) BoolVar(p *bool, name string, value bool, usage string) + func (set *FlagSet) Duration(name string, value time.Duration, usage string) *time.Duration + func (set *FlagSet) DurationVar(p *time.Duration, name string, value time.Duration, usage string) + func (set *FlagSet) ErrorHandling() flag.ErrorHandling + func (set *FlagSet) Float64(name string, value float64, usage string) *float64 + func (set *FlagSet) Float64Var(p *float64, name string, value float64, usage string) + func (set *FlagSet) Int(name string, value int, usage string) *int + func (set *FlagSet) Int64(name string, value int64, usage string) *int64 + func (set *FlagSet) Int64Var(p *int64, name string, value int64, usage string) + func (set *FlagSet) IntVar(p *int, name string, value int, usage string) + func (set *FlagSet) Lookup(name string) *Flag + func (set *FlagSet) NArg() int + func (set *FlagSet) NFlag() int + func (set *FlagSet) Output() io.Writer + func (set *FlagSet) Parse() error + func (set *FlagSet) ParseSlice(args []string) (err error) + func (set *FlagSet) Parsed() bool + func (set *FlagSet) PrintDefaults() + func (set *FlagSet) Set(name, value string) error + func (set *FlagSet) SetOutput(output io.Writer) + func (set *FlagSet) String(name string, value string, usage string) *string + func (set *FlagSet) StringVar(p *string, name string, value string, usage string) + func (set *FlagSet) Uint(name string, value uint, usage string) *uint + func (set *FlagSet) Uint64(name string, value uint64, usage string) *uint64 + func (set *FlagSet) Uint64Var(p *uint64, name string, value uint64, usage string) + func (set *FlagSet) UintVar(p *uint, name string, value uint, usage string) + func (set *FlagSet) Var(value flag.Value, name string, usage string) + func (set *FlagSet) Visit(fn func(*Flag)) + func (set *FlagSet) VisitAll(fn func(*Flag)) + type MissingOptionError rune + func (e MissingOptionError) Error() string + type Option struct + Option rune + Value string + func Getopts(argv []string, spec string) ([]Option, int, error) + type UnknownOptionError rune + func (e UnknownOptionError) Error() string