 func verifyOrCreateFile(name: String, _ maybepath: NSURL?, contents: ReadableStream) throws -> NSURL {
 	if let path = maybepath {
 		try makeThrowable(path.checkResourceIsReachableAndReturnError)
+		
 		return path
 	} else {
 		let newpath = main.tempdirectory + name


	try cli.parse(true)

	guard !versionOption.value else { return (nil,nil,true) }
	let path = filePathOption.value.map(NSURL.init)
	let name = nameOption.value ?? path?.lastPathComponent ?? " .html"
	return (name, path, false)

import Foundation


func parseArguments (cli: CommandLine) throws -> (name: String, path: NSURL?, showversion: Bool) {

	let filePathOption = StringOption(shortFlag: "p", longFlag: "path", required: false,
		helpMessage: "Load HTML to be rendered from the specified file. Use stdin if this option is not used.")
