Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagType = "-" KeyType = "@" PosType = "#" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Name string // name of the struct-field Deriver string // name of the Deriver implementation for the Argument Identifier string // identifier for the Argument Alias string // (not implemented) single character alias for the Argument (only valid for Flag/KeyValue) Default string // the default value for the Argument Type string // indicates the type of Argument Required bool // indicates if the Argument is required Repeatable bool // indicates the Argument is repeatable // Index of the Arg // // Only specified for non-repeatable PositionalArg Index int // Index of the start of the Arg // // Only specified for repeatable PositionalArg IndexFrom int // Usage/description of the Arg Usage string // contains filtered or unexported fields }
An Argument represents a clap.Arg defined via struct-tags.
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
A Program represents a structure with a number of Argument that can be automatically derived and parsed into clap.Arg in order to be parsed.
Click to show internal directories.
Click to hide internal directories.