Skip to content

Commit f3be0e3

Browse files
committed
Added CommandLine
1 parent 0c3b21c commit f3be0e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Commandline.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ public func __stringArrayToCStringArray(_ arcv: [NativeString]) -> (UnsafePointe
2121
}
2222
return result
2323
}
24-
#endif
24+
#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

Comments
 (0)