Documentation ¶
Index ¶
- func GenerateTo(src []*sflags.Flag, dst *[]cli.Flag)
- func GenerateToV3(src []*sflags.Flag, dst *[]cli.Flag)
- func Parse(cfg interface{}, optFuncs ...sflags.OptFunc) ([]cli.Flag, error)
- func ParseTo(cfg interface{}, dst *[]cli.Flag, optFuncs ...sflags.OptFunc) error
- func ParseToV3(cfg interface{}, dst *[]cli.Flag, optFuncs ...sflags.OptFunc) error
- func ParseV3(cfg interface{}, optFuncs ...sflags.OptFunc) ([]cli.Flag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTo ¶
GenerateTo takes a list of sflag.Flag, that are parsed from some config structure, and put it to dst.
func GenerateToV3 ¶ added in v0.3.1
GenerateToV3 takes a list of sflag.Flag, that are parsed from some config structure, and put it to dst.
func Parse ¶
Parse parses cfg, that is a pointer to some structure, puts it to the new flag.FlagSet and returns it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.