docopt.go
docopt.go copied to clipboard
Show example of repeatable flag
Does docopt support repeating flags, like hello -e name:bob -e hair:nil? If so, could the README please add an example of the docopt string syntax for enabling this for one or more named flags?
Any data type other than the built-in getters e.g. opts.Bool() can be accessed like a normal map object.
// needs type assertion to convert the type correctly
repeatedValues,_ := opts["--map"].([]string)