Files
SwiftShell/SwiftShellTests/Scripts/print_name_and_args.swift
T
2015-11-11 20:38:58 +01:00

6 lines
167 B
Swift
Executable File

#!/usr/bin/env swiftshell
import SwiftShell
print(NSURL(fileURLWithPath: main.path).lastPathComponent!, main.arguments.map {"\""+($0)+"\""} .joinWithSeparator(" "))