         let runLoop = CFRunLoopGetCurrent()
 
         do {
-            let path = NSURL(fileURLWithPath: changelog)
+            let path = NSURL(fileURLWithPath: file)
             let text = try NSString(contentsOfURL: path, encoding: NSUTF8StringEncoding) as String
             var lines:[String] = []
             text.enumerateLines { lines.append($0.line)}

        public let password: String
        public let transitionname: String
        public let comment: String
        public let changelog: String?
        
        public static func create(endpoint: String)
            -> (username: String)
            -> (password: String)
            -> (transitionname: String)
            -> (comment: String)
            -> (changelog: String?)
            -> Options {
                return { username in { password in { transitionname in { comment in { changelog in
                    return self.init(endpoint: endpoint,
                                     username: username,
                                     password: password,
                                     transitionname: transitionname,
                                     comment: comment,
                                     changelog: changelog)
                    } } } } }
        }
        

            let user:String  = options.username,
            let pass:String  = options.password,
            let issueTransitionName:String  = options.transitionname,
            let file:String = options.file,
            let api:JTKAPIClient = JTKAPIClient.init(endpointUrl: url, username: user, password: pass),
            let comment:String = options.comment
            where !options.endpoint.isEmpty
