mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 08:55:41 +00:00
13 lines
504 B
Go
13 lines
504 B
Go
package cli
|
|
|
|
import "errors"
|
|
|
|
// ErrHelpRequested is returned by verb ParseCLIFunc when -h or --help is used.
|
|
// The caller (CLI layer) should exit with code 0 after the verb has printed its
|
|
// usage to stdout.
|
|
var ErrHelpRequested = errors.New("help requested")
|
|
|
|
// ErrUsagePrinted is returned by verb ParseCLIFunc when validation fails. The
|
|
// verb has already printed its usage to stderr. The caller should exit 1
|
|
// without printing the error again.
|
|
var ErrUsagePrinted = errors.New("usage printed")
|