> used, this sort of functionality will not be needed.
> A new test harness for parseopts is added in test/scripts.
> +		local o re="^($1)(:?:?)$"
You only want one :? in the regex.
patchset.  My biggest complaint is I prefer the name "parse_options"