pub fn parse_args(args: &[String]) -> Result<(Options, Vec<String>), String>
Parse argv like Main.hs: last repeated flag wins for output/input mode.