We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c3b21c commit f3be0e3Copy full SHA for f3be0e3
Source/Commandline.swift
@@ -21,4 +21,10 @@ public func __stringArrayToCStringArray(_ arcv: [NativeString]) -> (UnsafePointe
21
}
22
return result
23
24
-#endif
+#endif
25
+
26
+public enum CommandLine {
27
+ public static var argc: Int32 { return __C_ARGC }
28
+ // public static var unsafeArgv: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>
29
+ public static var arguments: [String] { return __C_ARGV }
30
+}
0 commit comments