Skip to content
Find file
14 lines (8 sloc) 248 Bytes
var pi = NSProcessInfo.processInfo();
var argCount = pi.arguments().count();
print("There are " + argCount + " args");
var idx = 0;
while (idx < argCount) {
print("argument " + idx + ": " + pi.arguments()[idx]);
idx++;
}
Jump to Line
Something went wrong with that request. Please try again.