Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnquoteUsage ¶
UnquoteUsage extracts a back-quoted name from the usage string for a flag and returns it and the un-quoted usage. Given "a `name` to show" it returns ("name", "a name to show"). If there are no back quotes, the name is an educated guess of the type of the flag's value, or the empty string if the flag is boolean.
Types ¶
type Flag ¶
type Flag struct { Name string // full flag name Alias string // flag alias - if exists // contains filtered or unexported fields }
type GenHelpFunc ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) WithPrefix ¶ added in v0.6.0
type Options ¶
type Options struct { // HelpPreamble is optional text prepended to the help screen menu. HelpPreamble string // HelpPostamble is optional text appended to the generated help menu. HelpPostamble string // HelpFunc defines an optional custom help screen help menu render function to override the // default. HelpFunc GenHelpFunc }
Click to show internal directories.
Click to hide internal directories.