Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnexpectedCommand ¶
func UnexpectedSubcommand ¶
UnexpectedSubcommand checks for erroneous subcommands and prints help and returns error
Types ¶
type Args ¶ added in v1.4.20
type Args interface {
// Get returns the nth argument, or else a blank string
Get(n int) string
// First returns the first argument, or else a blank string
First() string
// Tail returns the rest of the arguments (not the first one)
// or else an empty string slice
Tail() []string
// Len returns the length of the wrapped slice
Len() int
// Present checks if there are any arguments present
Present() bool
// Slice returns a copy of the internal slice
Slice() []string
}
Click to show internal directories.
Click to hide internal directories.