option

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar struct {
	Ident string
	Syms  struct{ Long, Short string }
	Desc  string
	VType string
	// contains filtered or unexported fields
}

func NewEnvVar

func NewEnvVar(owner, long, short, desc, vtype string) *EnvVar

func (*EnvVar) Default

func (e *EnvVar) Default() string

func (*EnvVar) EnvironmentUsage

func (e *EnvVar) EnvironmentUsage() UsageRows

func (*EnvVar) OptionUsage

func (e *EnvVar) OptionUsage() UsageRows

func (*EnvVar) String

func (e *EnvVar) String() string

func (*EnvVar) Syntax

func (e *EnvVar) Syntax(param string) string

func (*EnvVar) UnquoteUsage

func (e *EnvVar) UnquoteUsage() (name string, usage string)

type Global

type Global struct {
	*flag.FlagSet
	Fifo    *EnvVar
	Timeout *EnvVar
	Match   *EnvVar
}

func New

func New(name string, usage func(string) string) *Global

func (*Global) Parse

func (g *Global) Parse(args []string) (err error)

type UsageCols

type UsageCols [2]string

type UsageRows

type UsageRows []UsageCols

Jump to

Keyboard shortcuts

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