args

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Done = errors.New("version")

Functions

func ParseArgs

func ParseArgs(out, eout io.Writer, osArgs []string, info version.Info, variables interface{}) error

Types

type Globals

type Globals struct {
	Version VersionFlag `name:"version" help:"Print args information and quit"`
	Verbose bool        `short:"v" help:"Enable verbose mode"`
}

type VersionFlag

type VersionFlag string

func (VersionFlag) BeforeApply

func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error

func (VersionFlag) Decode

func (v VersionFlag) Decode(ctx *kong.DecodeContext) error

func (VersionFlag) IsBool

func (v VersionFlag) IsBool() bool

Jump to

Keyboard shortcuts

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