Skip to content

fix: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a#175

Merged
Hejsil merged 5 commits intoHejsil:masterfrom
dxrcy:master
Jan 24, 2026
Merged

fix: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a#175
Hejsil merged 5 commits intoHejsil:masterfrom
dxrcy:master

Conversation

@dxrcy
Copy link
Contributor

@dxrcy dxrcy commented Jan 22, 2026

Summary

  • Add arguments parameter to clap.parse. Users can supply a std.process.Args instance from std.process.Init.
  • Update examples.

Breaking Changes

  • Change function signature of clap.parse.
  • Update minimum_zig_version to 0.16.0-dev.2261+d6b3dd25a.

@dxrcy dxrcy changed the title feat: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a fix: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a Jan 22, 2026
Copy link
Owner

@Hejsil Hejsil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uuh nice. I'll need to think a bit about how to best handle this new argument to parse

Comment on lines 23 to 29
var gpa_state = std.heap.DebugAllocator(.{}){};
const gpa = gpa_state.allocator();
defer _ = gpa_state.deinit();

var threaded: std.Io.Threaded = .init_single_threaded;
const io: std.Io = threaded.io();

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to initialize gpa and io. We get those from std.process.init

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, fixed.

@Hejsil Hejsil merged commit 1d3d273 into Hejsil:master Jan 24, 2026
6 checks passed
@Hejsil
Copy link
Owner

Hejsil commented Jan 24, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants