miller/pkg/cli/errors.go
2026-02-16 16:48:41 -05:00

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")