Open mcandre opened 7 years ago
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?
hello -e name:bob -e hair:nil
Any data type other than the built-in getters e.g. opts.Bool() can be accessed like a normal map object.
opts.Bool()
// needs type assertion to convert the type correctly repeatedValues,_ := opts["--map"].([]string)
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?