097bba54ec
This was breaking UsageOnMissing() when combined with validation of positional arguments, in that it was allowing positional arguments to be omitted. It also broke UsageOnMissing() somehow so that it did not work.
13 lines
291 B
Go
13 lines
291 B
Go
package kong
|
|
|
|
// ParseError is the error type returned by Kong.Parse().
|
|
//
|
|
// It contains the parse Context that triggered the error.
|
|
type ParseError struct {
|
|
error
|
|
Context *Context
|
|
}
|
|
|
|
// Cause returns the original cause of the error.
|
|
func (p *ParseError) Cause() error { return p.error }
|