Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeOptions ¶
func NormalizeOptions(args []string, shortOptions, longOptions map[string]struct{}) ([]string, error)
NormalizeOptions validates POSIX/GNU option spelling and converts long options to the form expected by Go's flag package. Short options use one dash (-v) and long options use two dashes (--run).
func SilentExit ¶
Types ¶
type ContextualHelp ¶
ContextualHelp is implemented by commands with subcommands. The arguments identify the requested subcommand path, for example ["add"] for "gox help client add".
type SilentExitError ¶
type SilentExitError struct {
Code int
}
SilentExitError tells main to exit with Code without logging the error message.
func (SilentExitError) Error ¶
func (e SilentExitError) Error() string
Click to show internal directories.
Click to hide internal directories.