         printTokens = true
     } else if next == "-p" {
         pretty = true
+    } else if next == "-i" {
+        simplify = true
     }
 }
 

}

@discardableResult
func parseQuery(_ qfile: String, silent: Bool = false, includeComments: Bool = false) throws -> Query {
    let url = URL(fileURLWithPath: qfile)
    let sparql = try Data(contentsOf: url)
    guard var p = SPARQLParser(data: sparql, includeComments: includeComments) else { fatalError("Failed to construct SPARQL parser") }
    let query = try p.parseQuery()
    let s = query.serialize()
    if !silent {
        print(s)

        } else if printTokens {
            try parseTokens(qfile, silent: silent)
        } else {
            try parseQuery(qfile, simplify: simplify, silent: silent)
        }
        //print("ok")
    } catch SerializationError.parsingError(let message) {
