 rootDict.addIntegerKey(key: "Features", val: 5)
 rootDict.addBoolKey(key: "Show Content Ratings", val: true)
 rootDict.addStringKey(key: "Library Persistent ID", val: "0000000000000002")
-
+rootDict.addStringKey(key: "Music Folder", val: "file://\(iTunesMusicFolder.value!)".addingPercentEncoding(withAllowedCharacters: .urlPathAllowed))
 
 // [2] Add tracks
 rootDict.addChild(name: "key", value: "Tracks", attributes: [:])

    
    if(iTunesMusicFolder.value == nil) {
        _ = iTunesMusicFolder.setValue([NSString(string: defaultItunesMusicFolder).expandingTildeInPath])
    }
    
    if(printUsage.value == true) {
        cli.printUsage()
        exit(EX_USAGE)
    }
} catch {
    cli.printUsage()

    }
}

do {
    try xml.xml.write(toFile: iTunesXMLPath.value!, atomically: false, encoding: String.Encoding.utf8)
    print("Written iTunes XML to \(iTunesXMLPath.value!)")
