Documentation ¶
Index ¶
- Constants
- type Flag
- func (f Flag) Consumes(arg string) bool
- func (f Flag) Definition() string
- func (f Flag) IsOptarg() bool
- func (f Flag) IsRepeatable() bool
- func (f Flag) Mode() mode
- func (f Flag) Nargs() int
- func (f Flag) OptargDelimiter() rune
- func (f Flag) Required() bool
- func (f Flag) Style() string
- func (f Flag) TakesValue() bool
- type FlagSet
- func (f FlagSet) IsInterspersed() bool
- func (f FlagSet) IsMutuallyExclusive(flag *pflag.Flag) bool
- func (f FlagSet) IsPosix() bool
- func (f FlagSet) IsShorthandSeries(arg string) bool
- func (fs FlagSet) LookupArg(arg string) (result *Flag)
- func (fs FlagSet) ShorthandLookup(name string) *Flag
- func (f *FlagSet) VisitAll(fn func(*Flag))
Constants ¶
View Source
const ( Default mode = iota // default behaviour ShorthandOnly // only the shorthand should be used NameAsShorthand // non-posix mode where the name is also added as shorthand (single `-` prefix) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶ added in v0.26.0
func (Flag) Definition ¶ added in v0.36.1
func (Flag) IsRepeatable ¶ added in v0.29.3
func (Flag) OptargDelimiter ¶ added in v0.32.0
func (Flag) TakesValue ¶ added in v0.31.1
type FlagSet ¶ added in v0.26.0
func (FlagSet) IsInterspersed ¶ added in v0.38.0
func (FlagSet) IsMutuallyExclusive ¶ added in v0.29.3
func (FlagSet) IsShorthandSeries ¶ added in v0.32.0
func (FlagSet) ShorthandLookup ¶ added in v0.40.0
Click to show internal directories.
Click to hide internal directories.