I've uploaded a version compatible with matlab:
it passes tests like:
p = inputParser();
p.addRequired("req",@isnumeric);
p.addParamValue ("line", "tree");
p.parse(10, "line","circle");
assert(p.Results, struct("req",10, "line","circle"));
if you could please give it a try; the tests can be ran as:
test @inputParser/inputParser
Thanks,
-F.