 import AppIconCore
 import ArgumentParser
+import Foundation
 
 struct AppIcon: ParsableCommand {
     static let configuration = CommandConfiguration(

    @Option(help: "The path of the generated appiconset")
    var outputPath = "AppIcon"

    @Flag(help: "Whether or not to generate iPad icons")
    var ipad = false

    @Flag(help: "Whether or not to generate Mac icons")
    var mac = false

    @Flag(help: "Whether or not to generate Apple Watch icons")
    var watch = false

    func run() throws {
        guard image.hasSuffix(".png") else {
            throw ValidationError("image path should have .png extension")
        }

        let outputExpansion = ".appiconset"

        version: "1.0.5"
    )

    @Argument(help: "The path to the base image (1024x1024.png)", completion: .file(extensions: ["png"]))
    var image: String

    @Option(help: "The name of the generated image")
