pflagfork

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

type Flag struct {
	*pflag.Flag
}

func (Flag) Definition

func (f Flag) Definition() string

func (Flag) IsOptarg

func (f Flag) IsOptarg() bool

func (Flag) IsRepeatable

func (f Flag) IsRepeatable() bool

func (Flag) Matches

func (f Flag) Matches(arg string, posix bool) bool

func (Flag) Mode

func (f Flag) Mode() mode

func (Flag) Nargs

func (f Flag) Nargs() int

func (Flag) OptargDelimiter

func (f Flag) OptargDelimiter() rune

func (Flag) Required

func (f Flag) Required() bool

func (Flag) Split

func (f Flag) Split(arg string) (prefix, optarg string)

func (Flag) Style

func (f Flag) Style() string

func (Flag) TakesValue

func (f Flag) TakesValue() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL