Documentation
¶
Index ¶
- Constants
- type Command
- type CommandError
- type IllegalOptionDefaultError
- type IllegalOptionValueError
- type IllegalShortPlacementError
- type Input
- func (i *Input) GetArray(flag string) []string
- func (i *Input) GetFlag(flag string) bool
- func (i *Input) GetFlagCount(flag string) int
- func (i *Input) GetIntParameter(flag string) *int
- func (i *Input) GetIntParameterOr(flag string, fallback int) int
- func (i *Input) GetOperand(operand string) string
- func (i *Input) GetParameter(flag string) *string
- func (i *Input) GetParameterOr(flag string, fallback string) string
- type MissingOperandError
- type MissingOptionValueError
- type Operand
- type Option
- type OptionType
- type UndeclaredOptionError
Constants ¶
View Source
const HELP_SPACING = 30
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type CommandError ¶
type CommandError struct {
// contains filtered or unexported fields
}
func NewCmdErr ¶
func NewCmdErr(command *Command, err error) *CommandError
func (*CommandError) Error ¶
func (e *CommandError) Error() string
type IllegalOptionDefaultError ¶
type IllegalOptionDefaultError struct {
// contains filtered or unexported fields
}
func (*IllegalOptionDefaultError) Error ¶
func (e *IllegalOptionDefaultError) Error() string
type IllegalOptionValueError ¶
type IllegalOptionValueError struct {
// contains filtered or unexported fields
}
func (*IllegalOptionValueError) Error ¶
func (e *IllegalOptionValueError) Error() string
type IllegalShortPlacementError ¶
type IllegalShortPlacementError struct {
// contains filtered or unexported fields
}
func (*IllegalShortPlacementError) Error ¶
func (e *IllegalShortPlacementError) Error() string
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) GetFlagCount ¶
func (*Input) GetIntParameter ¶
func (*Input) GetOperand ¶
func (*Input) GetParameter ¶
type MissingOperandError ¶
type MissingOperandError struct {
// contains filtered or unexported fields
}
func (*MissingOperandError) Error ¶
func (e *MissingOperandError) Error() string
type MissingOptionValueError ¶
type MissingOptionValueError struct {
// contains filtered or unexported fields
}
func (*MissingOptionValueError) Error ¶
func (e *MissingOptionValueError) Error() string
type OptionType ¶
type OptionType int
const ( OptionTypeFlag OptionType = iota OptionTypeParameter OptionTypeArray )
type UndeclaredOptionError ¶
type UndeclaredOptionError struct {
// contains filtered or unexported fields
}
func (*UndeclaredOptionError) Error ¶
func (e *UndeclaredOptionError) Error() string
Click to show internal directories.
Click to hide internal directories.