Handle mode arguments to with-input-from-file.