args

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnArgType

type AnArgType struct {
	Name     string
	Abrev    string
	Default  string
	Required bool
	NoValue  bool // set to "1" if specifed
}

type ArgConfigType

type ArgConfigType struct {
	Config map[string]AnArgType
}

func (*ArgConfigType) IsArg

func (bb *ArgConfigType) IsArg(s string) (match bool, name string, aa AnArgType)

type ArgRetType

type ArgRetType struct {
	Set       map[string]string
	Remainder []string
	Config    *ArgConfigType
}

func GetArgs

func GetArgs(argConfig *ArgConfigType, off int, argc []string) (rv *ArgRetType, err error)

func (*ArgRetType) Usage

func (aa *ArgRetType) Usage(cmd string)

Jump to

Keyboard shortcuts

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