pflagfork

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default         style = iota // default behaviour
	ShorthandOnly                // only the shorthand should be used
	NameAsShorthand              // non-posix style 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

type Flag struct {
	*pflag.Flag
}

func (Flag) IsRepeatable added in v0.29.3

func (f Flag) IsRepeatable() bool

func (Flag) Style added in v0.29.3

func (f Flag) Style() style

type FlagSet added in v0.26.0

type FlagSet struct {
	*pflag.FlagSet
}

func (FlagSet) IsMutuallyExclusive added in v0.29.3

func (f FlagSet) IsMutuallyExclusive(flag *pflag.Flag) bool

func (FlagSet) IsPosix added in v0.29.3

func (f FlagSet) IsPosix() bool

func (*FlagSet) VisitAll added in v0.29.3

func (f *FlagSet) VisitAll(fn func(*Flag))

Jump to

Keyboard shortcuts

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