flag

package
v0.0.0-...-751dcce Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(tt []string) (*Set, error)

TODO: split apart and remove nolint nolint: funlen,gocognit

func (*Parser) RegisterSlice

func (p *Parser) RegisterSlice(long, short string)

func (*Parser) RegisterUnary

func (p *Parser) RegisterUnary(long, short string)

type Set

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

func (Set) Option

func (fs Set) Option(long, short string) (string, bool)

func (Set) Options

func (fs Set) Options(long, short string) (opts []string)

func (Set) Positional

func (fs Set) Positional(i uint) (string, bool)

Jump to

Keyboard shortcuts

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