         "Updates all packeges to the latest version"
     ]
     
-    public var signature: [Argument] = []
+    public var signature: [Argument] = [
+        Option(name: "xcode", short: "x", help: [
+            "Regenerate Xcode project after updating package versions"
+        ])
+    ]
     
     public let console: ConsoleProtocol
     public let client = PackageJSONFetcher()

    
    public func run(arguments: [String]) throws {
        let updateBar = console.loadingBar(title: "Updating Package Versions")
        updateBar.start()
        
        let fileManager = FileManager.default

        _ = try console.backgroundExecute(program: "swift", arguments: ["package", "--enable-prefetching", "resolve"])
        
        updateBar.finish()
        
        if let _ = arguments.options["xcode"] {
            xcodeBar.start()
            _ = try console.backgroundExecute(program: "swift", arguments: ["package", "--enable-prefetching", "generate-xcodeproj"])
            xcodeBar.finish()
        }
    }
}
