 }
 
 var macMode = false
-func createIconsForFilePaths(filePaths : Array<URL>)
-{
+func createIconsForFilePaths(filePaths : Array<URL>) {
     var failedInputsCheck = false
-    for filePath in filePaths
-    {
+    for filePath in filePaths {
         if FileManager.default.fileExists(atPath: filePath.path) == false {
             failedInputsCheck = true
             print("Issue: file does not exist \(filePath)")


var arguments = CommandLine.arguments
arguments.remove(at: 0) // remove binary name
arguments = arguments.filter { if $0 == "-mac" { macMode = true; return false } else { return true } }

if arguments.count > 1
{
    var filePathsArr = Array<URL>()
    
    for filename in arguments
    {
        if filename[0]  == "/" {
            filePathsArr.append(URL(fileURLWithPath: filename))
            continue

    }
}

func outputDirPathForIconPath(iconPath: URL) -> URL {
    let iconName = iconPath.deletingPathExtension().lastPathComponent
    let parentPath = iconPath.deletingLastPathComponent()
    return parentPath.appendingPathComponent("\(iconName)_output")
}

func scaleIcon(iconPath: URL, resolution: Int) {
    let task = Process()
    task.launchPath = "/usr/bin/sips"
    task.arguments = ["-Z", "\(resolution)", iconPath.path]
