                
                 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)
                 }
                 

public struct ParseCommand: CommandType {
    public let verb = "parse"
    public let function = "Parse a Changelog"
    
    public struct Options: OptionsType {
        public let file: String?
        public let outfile: String?
        public let withIssues: Bool?
        
        public static func create(file: String?)
            -> (outfile: String?)
            -> (withIssues: Bool?)
            -> Options {
                return { outfile in { withIssues in
                    return self.init(file: file,
                                     outfile: outfile,
                                     withIssues: withIssues)
                    } }
        }
        
        public static func evaluate(m: CommandMode) -> Result<Options, CommandantError<ChangelogParserError>> {

                                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")
                <*> m <| Option(key: "withVersion",
                                defaultValue: false, usage: "write Version Information to CHANGELOG-VERSION.TXT")
        }
    }
    
