Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagToggle = iota FlagOption )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct {
// contains filtered or unexported fields
}
func ParseArgvKeyValue ¶
func ParseArgvKeyValueWithCommand ¶
ParseArgvKeyValue parses a clean (trimmed) argv whose components are either toggles or key=value pairs. IOW, this is a restricted and easier to parse flavour of argv on which option and value are guaranteed to be in the same item. IOW, we expect "--opt=foo" AND NOT "--opt", "foo"
Click to show internal directories.
Click to hide internal directories.