flags

package
v2.15.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnparsedBoolean added in v2.13.0

func GetUnparsedBoolean(args []string, flag string) (bool, bool, error)

GetUnparsedBoolean returns the value of a boolean flag that has been provided after a "--" on the command line, and hence hasn't been parsed as a normal flag. Typical use case is:

telepresence intercept --docker-run ... -- --rm

func GetUnparsedValue

func GetUnparsedValue(args []string, flag string) (string, error)

GetUnparsedValue returns the value of a flag that has been provided after a "--" on the command line, and hence hasn't been parsed as a normal flag. Typical use case is:

telepresence intercept --docker-run ... -- --name <name>

func Map

func Map(flags *pflag.FlagSet) map[string]string

Map returns a map of the flags that has been modified in the given FlagSet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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