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 17dc901 commit 722125eCopy full SHA for 722125e
src/cli-args.zig
@@ -0,0 +1,10 @@
1
+const std = @import("std");
2
+
3
+pub fn main() !void {
4
+ const args = try std.process.argsAlloc(std.heap.page_allocator);
5
+ defer std.process.argsFree(std.heap.page_allocator, args);
6
7
+ for (0..args.len) |i| {
8
+ std.debug.print("\n{d}: {s}", .{ i, args[i] });
9
+ }
10
+}
0 commit comments