You could use

iter.matchOption(tempArg, "--allow"))

which would then support

--allow=cpp
and
--allow cpp

The other options are also case sensitive.