                     options: NSMatchingOptions.WithTransparentBounds,
                     range: NSMakeRange(0, bundle.characters.count)).isEmpty
             }
-        } else {
-            filtered = apps
-        }
-        print("\(filtered.count) app\(filtered.count == 1 ? "" : "s") found.")
-        for app in filtered {
-            print("\(app.bundleIdentifier ?? UnknownBundleID): \(app.processIdentifier)")
         }
     }
 }

    let commandShortDescription = "Terminate the specified running app. You need to pass the exact bundleID or PID."
    let commandSignature = ""

    func setupOptions(options: Options) {
        options.onKeys(["-p", "--pid"]) { [unowned self] _, value in
            guard let pid = Int(value) else {
                print("invalid pid: \(value)")
                return
            }
            let apps = NSWorkspace.sharedWorkspace().runningApplications
            let filtered = apps.filter {
                Int($0.processIdentifier) == pid

                return
            }
            filtered.forEach(self.terminate)
        } else if let bundleId = bundleId {
            let apps = NSRunningApplication.runningApplicationsWithBundleIdentifier(bundleId)
            guard !apps.isEmpty else {
                print("Couldn't find any processes named \"\(bundleId)\"\nexiting...")
