How to print all command line arguments except the program name in Swift

1 Answer

0 votes
import Foundation

let arguments = CommandLine.arguments

for argument in arguments.dropFirst() {
    print(argument)
}



/*
run:

abc
123
F35

*/

 



answered 6 days ago by avibootz
...