argparser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 7 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 {
	CommandTree     cmdtree.CommandTree
	Config          reflect.Value
	Name            []string
	ShowHelp        bool
	FlagsTerminated bool
	PosArgIndex     int
	Flag            command.Flag
	FlagIsShort     bool
}

func New

func New(tree cmdtree.CommandTree) Parser

func (Parser) NoMoreArgs

func (p Parser) NoMoreArgs() error

func (*Parser) ParseArg

func (p *Parser) ParseArg(s string) error

Jump to

Keyboard shortcuts

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