       workspace.setIcon(
         nil,
         forFile: path,
-        options: NSWorkspaceIconCreationOptions(rawValue: 0)
+        options: NSWorkspace.IconCreationOptions(rawValue: 0)
       )
       success = workspace.setIcon(
         icon,
         forFile: path,
-        options: NSWorkspaceIconCreationOptions(rawValue: 0)
+        options: NSWorkspace.IconCreationOptions(rawValue: 0)
       )
 
       if !success {

            continue
          }
          // Short argument — add each character to options
          for char in arg.substring(from: arg.index(after: arg.startIndex)).characters {
            // Avoid inserting a false '--'
            if char == "-" {
              continue

    mode:        String = "add",
    verbosity:   Int    = 0
  ) -> Int32 {
    let workspace: NSWorkspace = NSWorkspace.shared
    var icon:      NSImage?
    var success:   Bool
    var ret:       Int32 = 0
