A
A
Anton Kokarev2019-01-06 01:12:47
Swift
Anton Kokarev, 2019-01-06 01:12:47

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

1 answer(s)
D
doublench21, 2019-01-06
@akokarev

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 question

Ask a Question

731 491 924 answers to any question