C and derivatives have argc
and argv
(and envp
) parameters to their entry point functions, but Swift doesn't have one proper: top-level code is just code and it doesn't have parameters.
How can one access the equivalent of argc
and argv
in a Swift program?