args

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	// contains filtered or unexported fields
}

func (*Argument) Get

func (arg *Argument) Get() string

func (*Argument) Is_Specified

func (arg *Argument) Is_Specified() bool

type Parser

type Parser struct {
	Args map[string]*Argument
	// contains filtered or unexported fields
}

func NewParser

func NewParser(key_regex string) (Parser, error)

func (*Parser) Get

func (pars *Parser) Get(key string) (*Argument, error)

func (*Parser) GetValue

func (pars *Parser) GetValue(key string) (string, error)

func (*Parser) Parse

func (pars *Parser) Parse(args []string, strict bool) error

func (*Parser) Register

func (pars *Parser) Register(key string, default_value string, help string) error

Jump to

Keyboard shortcuts

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