Documentation ¶
Overview ¶
Package xflag add an additional flag type Array for repeated string flags.
var f xflag.Array flag.Var(&f, "r", "some repeatable flag") flag.Parse() // $ command -r a -r b -r c for _, v := range f { ... } // []string{"a", "b", "c"}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶ added in v0.1.333
Date can be used to parse command line args into dates.
type UserPassword ¶ added in v0.1.333
UserPassword allows to pass in user:password in flags.
func (*UserPassword) Set ¶ added in v0.1.333
func (u *UserPassword) Set(value string) error
func (*UserPassword) String ¶ added in v0.1.333
func (u *UserPassword) String() string
Click to show internal directories.
Click to hide internal directories.