Documentation ¶
Overview ¶
Package parse provides tools for common flag parsing tasks.
Index ¶
- Variables
- func AllowResetSpecified(fs FlagSet, allow bool)
- func IgnoreUndefined(fs FlagSet, ignore bool)
- func Join(a, b string) string
- func NextLevel(fs FlagSet)
- func Setup(x interface{}, v Visitor) error
- func Stash(fs FlagSet, fn func(*flag.Flag) bool)
- type FlagGetter
- type FlagSet
- type FlagSetOption
- type FlagSetter
- type SetupFunc
- type Visitor
- type VisitorFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var SetSeparator = "."
Functions ¶
func AllowResetSpecified ¶ added in v0.9.0
func IgnoreUndefined ¶ added in v0.9.0
Types ¶
type FlagGetter ¶
type FlagSet ¶
type FlagSet interface { FlagGetter FlagSetter }
func NewFlagSet ¶
func NewFlagSet(flags *flag.FlagSet, opts ...FlagSetOption) FlagSet
type FlagSetOption ¶
type FlagSetOption func(*flagSet)
func WithIgnoreUndefined ¶
func WithIgnoreUndefined(v bool) FlagSetOption
type FlagSetter ¶
Click to show internal directories.
Click to hide internal directories.