Fix for platforms that need an allocator for process arguments
This commit is contained in:
parent
1384eab9f2
commit
fd10951562
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ pub fn main(init: std.process.Init) anyerror!void {
|
||||||
|
|
||||||
var opt_output_file_path: ?[]const u8 = null;
|
var opt_output_file_path: ?[]const u8 = null;
|
||||||
|
|
||||||
var args = init.minimal.args.iterate();
|
var args = try init.minimal.args.iterateAllocator(allocator);
|
||||||
|
defer args.deinit();
|
||||||
_ = args.next();
|
_ = args.next();
|
||||||
while (args.next()) |arg| {
|
while (args.next()) |arg| {
|
||||||
if (opt_output_file_path != null) fatal("duplicated {s} argument", .{arg});
|
if (opt_output_file_path != null) fatal("duplicated {s} argument", .{arg});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue