package
Version:
v1.5.2-beta.0
Opens a new window with list of versions in this module.
Published: Dec 14, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
InitFlags normalizes and parses the command line flags
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc changes all flags that contain "_" separators
type StringFlag struct {
}
StringFlag is a string flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.
func NewStringFlag(defaultVal string) StringFlag
func (f *StringFlag) Default(value string)
func (f StringFlag) Provided() bool
func (f *StringFlag) Set(value string) error
func (f StringFlag) String() string
func (f *StringFlag) Type() string
func (f StringFlag) Value() string
Tristate is a flag compatible with flags and pflags that
keeps track of whether it had a value supplied or not.
const (
Unset Tristate = iota
True
False
)
func (f *Tristate) Default(value bool)
func (f Tristate) Provided() bool
func (f *Tristate) Set(value string) error
func (f Tristate) String() string
func (f *Tristate) Type() string
func (f Tristate) Value() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.