fix: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a#175
Merged
Hejsil merged 5 commits intoHejsil:masterfrom Jan 24, 2026
Merged
fix: use new std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a#175Hejsil merged 5 commits intoHejsil:masterfrom
std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a#175Hejsil merged 5 commits intoHejsil:masterfrom
Conversation
std.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25astd.process.Init args for Zig 0.16.0-dev.2261+d6b3dd25a
Hejsil
reviewed
Jan 22, 2026
Owner
Hejsil
left a comment
There was a problem hiding this comment.
Uuh nice. I'll need to think a bit about how to best handle this new argument to parse
example/subcommands.zig
Outdated
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(); | ||
|
|
Owner
There was a problem hiding this comment.
No need to initialize gpa and io. We get those from std.process.init
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
argumentsparameter toclap.parse. Users can supply astd.process.Argsinstance fromstd.process.Init.Breaking Changes
clap.parse.minimum_zig_versionto0.16.0-dev.2261+d6b3dd25a.