Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadGroup = errors.New("only the last short flag in a group can have an argument")
ErrBadGroup indicated that more than one short flag in a group expects an argument
View Source
var ErrBoolArg = errors.New("args cannot be bool values")
ErrBoolArg indicates that an argument is a bool (unsupported)
View Source
var ErrInsufficientArgs = errors.New("Missing argument(s)")
ErrInsufficientArgs indicates that not enough arguments were provided for this subcommand
View Source
var ErrMissingFlagName = errors.New("missing flag name")
ErrMissingFlagName indicates that no flag name was provided
View Source
var ErrMissingValue = errors.New("missing value for field")
ErrMissingValue indicates that a flag does not have an associated value
View Source
var ErrSliceFlag = errors.New("flags cannot be slices")
ErrSliceFlag indicates that a flag has been given a slice type
View Source
var ErrTooManyArgs = errors.New("too many arguments")
ErrTooManyArgs indicates that too many arguments were provided for this subcommand
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a Queue of arguments, used druing parsing
Click to show internal directories.
Click to hide internal directories.