Documentation ¶
Index ¶
- Constants
- type Flag
- func (f Flag) Definition() string
- func (f Flag) IsOptarg() bool
- func (f Flag) IsRepeatable() bool
- func (f Flag) Matches(arg string, posix bool) bool
- func (f Flag) Mode() mode
- func (f Flag) Nargs() int
- func (f Flag) OptargDelimiter() rune
- func (f Flag) Required() bool
- func (f Flag) Split(arg string) (prefix, optarg string)
- func (f Flag) Style() string
- func (f Flag) TakesValue() bool
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 ¶
Click to show internal directories.
Click to hide internal directories.