         
         guard let file:String = options.file,
             let outfile:String  = options.outfile,
-            let showIssues:Bool = options.withIssues
+            let showIssues:Bool = options.withIssues,
+            let showVersion:Bool = options.withVersion
             else {
                 return .Failure(.InvalidArgument(description: "Missing values: file, outfile"))
         }
-        
+
         //print(file)
         //print(outfile)
         
         let path = NSURL(fileURLWithPath: file)
         do {
+
+            //let runLoop = CFRunLoopGetCurrent()
+
             let text = try NSString(contentsOfURL: path, encoding: NSUTF8StringEncoding) as String
 
             var lines:[String] = []

                                defaultValue: "CHANGELOG-RELEASENOTES.md", usage: "the out release notes file to build")
                <*> m <| Option(key: "withIssues",
                                defaultValue: false, usage: "write IssueIds to CHANGELOG-ISSUES.TXT")
        }
    }
    

               
                guard let log = result.data where result.success else {
                    print(ChangelogParserError.ParseFailed(description: "Parse failed").description)
                    //return .Failure(.ParseFailed(description: "Parse failed"))
                    exit(EXIT_FAILURE)
                }
                
