flag

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TryParseFlagValue

func TryParseFlagValue(flag string, pval *string, set func(v string), pi *int, args []string) (ok bool, err error)

func TryParseFlagsValue

func TryParseFlagsValue(flags []string, pval *string, set func(v string), pi *int, args []string) (ok bool, err error)

func TrySingleFlag added in v1.0.7

func TrySingleFlag(flags []string, arg string) (flag string, value string)

TrySingleFlag parses given flags with the form: -a -a=xxx

Types

This section is empty.

Jump to

Keyboard shortcuts

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