fn set_arg_flags<S: AsRef<str>>( args: &mut HashSet<char>, allowed: &str, arg: S, ) -> Result<(), String>