Removes "--" from optional arguments in the mains