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 ¶
func (Flag) Definition ¶
func (Flag) IsRepeatable ¶
func (Flag) OptargDelimiter ¶
func (Flag) TakesValue ¶
type FlagSet ¶
func (FlagSet) IsInterspersed ¶
func (FlagSet) IsShorthandSeries ¶
func (FlagSet) ShorthandLookup ¶
Click to show internal directories.
Click to hide internal directories.