Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetUsage ¶ added in v0.4.0
func SetUsage(set *flag.FlagSet, options ...UsageOption)
Types ¶
type StringSlice ¶
type StringSlice []string
func (*StringSlice) Set ¶
func (e *StringSlice) Set(value string) error
func (*StringSlice) String ¶
func (e *StringSlice) String() string
type UsageOption ¶ added in v0.4.0
type UsageOption = func(u *Usage)
func WithUsageDescription ¶ added in v0.4.0
func WithUsageDescription(parts ...string) UsageOption
func WithUsageExec ¶ added in v0.4.0
func WithUsageExec(exec bool) UsageOption
func WithUsageExecutable ¶ added in v0.4.0
func WithUsageExecutable(executable string) UsageOption
func WithUsageNotes ¶ added in v0.4.0
func WithUsageNotes(parts ...string) UsageOption
func WithUsageVersion ¶ added in v0.4.0
func WithUsageVersion(version string) UsageOption
Click to show internal directories.
Click to hide internal directories.