flags

package
v1.438.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool() *bool

Bool for cmd.

func IsBoolSet added in v1.327.0

func IsBoolSet(b *bool) bool

IsBoolSet the flag for cmd.

func IsStringSet added in v1.327.0

func IsStringSet(s *string) bool

IsStringSet the flag for cmd.

func Sanitize added in v1.438.0

func Sanitize(args []string) []string

Sanitize removes all flags that start with -test.

func String

func String() *string

String for cmd.

Types

type FlagSet added in v1.438.0

type FlagSet = pflag.FlagSet

FlagSet is a type alias for pflag.FlagSet.

func NewFlagSet added in v1.438.0

func NewFlagSet(name string) *FlagSet

NewFlagSet creates a new flag set with the given name.

Jump to

Keyboard shortcuts

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