     Argument<Path>("PATH", description: "xcodeproj file", validator: dirExists),
     Argument<Path>("DIR", description: "output directory"),
     Flag("trim-duplicates", description: "extract duplicated lines to common xcconfigs.", default: true)
-) { pbxprojPath, dirPath, isTrimDuplicates in
+) { xcodeprojPath, dirPath, isTrimDuplicates in
 
-    let path = pbxprojPath + Path("project.pbxproj")
+    let pbxprojPath = xcodeprojPath + Path("project.pbxproj")
     if dirPath.isDirectory == false {
         try! dirPath.mkdir()
     }

            try write(to: r.path, settings: r.settings)
        }
    }
}

main.run(version)

    //
    // read
    //
    let data: Data = try pbxprojPath.read()
    guard let pbxproj = Pbxproj(data: data) else {
        fatalError("Failed to parse Pbxproj")
    }
