Files
SwiftShell/SwiftShellTests/Scripts/print_name_and_args.swift
T
Kare Morstol 93922a4101 Fix main.name .
Now prints the script's name instead of its path.
2015-09-07 22:17:37 +02:00

6 lines
124 B
Swift
Executable File

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