Commit 18b8a625f5

Andrew Kelley <superjoe30@gmail.com>
2017-12-07 00:22:52
upgrade to new args api
1 parent 7c91a05
Changed files (1)
src-self-hosted
src-self-hosted/main.zig
@@ -377,7 +377,10 @@ pub fn main2() -> %void {
 
     const allocator = &incrementing_allocator.allocator;
 
-    const target_file = "input.zig"; // TODO
+    const args = %return os.argsAlloc(allocator);
+    defer os.argsFree(allocator, args);
+
+    const target_file = args[1];
 
     const target_file_buf = %return io.readFileAlloc(target_file, allocator);