args

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureArgs

func EnsureArgs(fl *pflag.FlagSet) []string

func EnsureNoArgs

func EnsureNoArgs(fl *pflag.FlagSet)

func EnsureSingleArg

func EnsureSingleArg(fl *pflag.FlagSet) string

func EnsureTwoArgs

func EnsureTwoArgs(fl *pflag.FlagSet) (string, string)

func IsPath

func IsPath(f *pflag.Flag) bool

IsPath returns true if the given flag is a path flag.

func OptChoice

func OptChoice(f *pflag.FlagSet, value *string, name, shorthand string, defaultValue string, choices []string, usage string)

func SetPath

func SetPath(fl *pflag.FlagSet, name string)

SetPath annotates the given flag as a path flag.

func SingleArgOrDefault

func SingleArgOrDefault(fl *pflag.FlagSet, def string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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