mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-11-03 21:49:42 -09:00
Zig 0.16: Args
This commit is contained in:
parent
614e1a96c1
commit
f3aa967f84
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue