The goal is just to check the formatting of the option, making sure the user doesn't pass wrong options. If we get a wrong option we could ignore it (not using parser.error), but then the user doesn't know he made a mistake.

I didn't know empty value was valid. I'll simplify the search so it's between the second and last character.