Answer the question
In order to leave comments, you need to log in
How to get the parameters of its launch in Swift in a console application?
I am writing a console application, I need to find out from which folder it was launched, usually this is the 0th parameter. But how to get a list of these parameters?
Sometimes the rootDirectory is also replaced when the application starts. I would like to have both directories.
Answer the question
In order to leave comments, you need to log in
Well, what does it mean. You have Swift. Swift has a standard library, which, of course, does not need to be connected, it is already available. She obviously knows how to do such basic things. That ladies https://developer.apple.com/documentation/swift/co... Well, then Google will help you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question