Documentation
¶
Overview ¶
Package option implements simple command-line option parsing.
Index ¶
Constants ¶
View Source
const OptionTerminator = "--"
OptionTerminator is the string, when seen on the command line, which terminates further option processing.
Variables ¶
View Source
var OptionTypeMap = map[string]string{"s": "string", "i": "int", "u": "uint", "f": "float", "b": "bool"}
OptionTypeMap is the map of recognized type abbreviations to types.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Definitions []Config
}
Options is {TODO}.
func (Options) Parse ¶
func (optDef Options) Parse(args []string) (ParsedOptionsMap, []string, error)
Parse returns {TODO}.
func (Options) ParseCommandLine ¶
func (optDef Options) ParseCommandLine() (ParsedOptionsMap, []string, error)
ParseCommandLine returns {TODO}.
Click to show internal directories.
Click to hide internal directories.