Documentation ¶
Overview ¶
Package arguments parse -key=value style command line arguments for package github.com/toy80/toy/utils/options
Index ¶
- func Extend(base, override []string) (z []string)
- func Filter(args []string, f func(a string) bool) (dst []string)
- func IsOption(args string) bool
- func Key(args string) *string
- func KeyValue(args string) (k, v *string)
- func Parse(src string) (args []string, err error)
- func Value(args string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyValue ¶
KeyValue split an option args into key and value, for example -foo=bar will split into foo and bar. key is empty if args not start with a "-". "--" and "-" are equals. options separated by space (for example -foo bar) is not supported
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.