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
5659a7980f
commit
e4b3c4d4c2
1 changed files with 2 additions and 2 deletions
|
|
@ -509,8 +509,8 @@ pub fn main(init: std.process.Init) void {
|
|||
var export_bin: ?[:0]const u8 = null;
|
||||
var quit_after_scan = false;
|
||||
{
|
||||
const arglist = std.process.argsAlloc(allocator) catch unreachable;
|
||||
defer std.process.argsFree(allocator, arglist);
|
||||
const arglist = init.minimal.args.toSlice(allocator) catch unreachable;
|
||||
defer allocator.free(arglist);
|
||||
var args = Args.init(arglist);
|
||||
_ = args.next() catch unreachable; // program name
|
||||
while (args.next() catch unreachable) |opt| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue