Documentation ¶
Index ¶
- type BadParameter
- type CmdInfo
- func (c *CmdInfo) BoolVar(p *bool, name string, defValue bool, usage string)
- func (c *CmdInfo) DefaultStringVar(p *string, usage string)
- func (c *CmdInfo) Description() string
- func (c *CmdInfo) Initialize(name, description string)
- func (c *CmdInfo) IntVar(p *int, name string, defValue int, argNAme string, usage string)
- func (c *CmdInfo) NFlag() int
- func (c *CmdInfo) Name() string
- func (c *CmdInfo) Parse(arguments []string) error
- func (c *CmdInfo) StringVar(p *string, name string, defValue string, argNAme string, usage string)
- func (c *CmdInfo) Usage(short bool)
- func (c *CmdInfo) UsageFormetted(w *tabwriter.Writer, short bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadParameter ¶
type BadParameter struct {
Message string
}
BadParameter error
func (BadParameter) Error ¶
func (e BadParameter) Error() string
type CmdInfo ¶
type CmdInfo struct {
// contains filtered or unexported fields
}
CmdInfo contains info about single command with arguments
func NewFlagSetEx ¶
NewFlagSetEx - create new command object
func (*CmdInfo) BoolVar ¶
BoolVar defines a bool flag with specified name, default value, and usage string. The argument p points to a bool variable in which to store the value of the flag.
func (*CmdInfo) DefaultStringVar ¶
DefaultStringVar defines default string argument
func (*CmdInfo) Initialize ¶
Initialize initialises object
func (*CmdInfo) IntVar ¶
IntVar defines an int flag with specified name, default value, and usage string. The argument p points to an int variable in which to store the value of the flag.
func (*CmdInfo) Parse ¶
Parse parses flag definitions from the argument list see description of Flagset.Parse()
Click to show internal directories.
Click to hide internal directories.