#!/usr/bin/env swift; import Foundation import Utils // Begin Main var names:[String] = ["Fred", "Wilma", "Barney", "Betty"] // Print out the name based on command line argument 1-4 for i:Int in 1...(CommandLine.arguments.count - 1) { let x:Int = Int(CommandLine.arguments[i]) ?? 0 print(String(i) + ":" + names[x - 1]) } exit(EXIT_SUCCESS)