MCPcopy
hub / github.com/urfave/cli / Argument

Interface Argument

args.go:66–78  ·  args.go::Argument

Argument captures a positional argument that can be parsed

Source from the content-addressed store, hash-verified

64// Argument captures a positional argument that can
65// be parsed
66type Argument interface {
67 // which this argument can be accessed using the given name
68 HasName(string) bool
69
70 // Parse the given args and return unparsed args and/or error
71 Parse([]string) ([]string, error)
72
73 // The usage template for this argument to use in help
74 Usage() string
75
76 // The Value of this Arg
77 Get() any
78}
79
80// AnyArguments to differentiate between no arguments(nil) vs aleast one
81var AnyArguments = []Argument{

Calls

no outgoing calls

Tested by

no test coverage detected