Zig 0.16: Args

This commit is contained in:
LN Liberda 2026-05-22 19:18:06 +02:00
parent 614e1a96c1
commit f3aa967f84

View file

@ -463,7 +463,7 @@ fn readImport(path: [:0]const u8) !void {
}
}
pub fn main() void {
pub fn main(init: std.process.Init) void {
ui.main_thread = std.Thread.getCurrentId();
// Grab thousands_sep from the current C locale.
@ -477,7 +477,7 @@ pub fn main() void {
}
const loadConf = blk: {
var args = std.process.ArgIteratorPosix.init();
var args = init.minimal.args.iterate();
while (args.next()) |a|
if (std.mem.eql(u8, a, "--ignore-config"))
break :blk false;