Documentation
¶
Overview ¶
Package cli handles command line arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commander ¶
type Commander interface {
// contains filtered or unexported methods
}
Commander is an generalizer of Command.
type Program ¶
type Program struct { ProgramName string ProgramVersion string Help bool ShortHelp bool Version bool ShortVersion bool // contains filtered or unexported fields }
Program is a struct to define a program and its command.
func NewProgram ¶
NewProgram makes a new Program instance.
func (*Program) ShowCmdUsage ¶
ShowCmdUsage prints command usage of given subCmd on stderr.
func (*Program) ShowUsage ¶
ShowUsage prints program usage of given subCmd on stderr. If subCmd is empty, prints general usage.
func (*Program) ShowVersion ¶
ShowVersion prints program name and version on stderr.
Click to show internal directories.
Click to hide internal directories.