Fix old API parse() flags type.
Make sure optarg is set before calling parse().