Skip to content

Instantly share code, notes, and snippets.

@monkeydom
Created June 3, 2014 20:17
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monkeydom/77406645910085fbe894 to your computer and use it in GitHub Desktop.
Save monkeydom/77406645910085fbe894 to your computer and use it in GitHub Desktop.
import Foundation
let argumentCount = Int(C_ARGC)
var argumentArray: Array<String> = Array<String>()
for index in 0..argumentCount {
argumentArray.append(String.fromCString(C_ARGV[index]))
}
println("\(argumentArray)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment