Skip to content

Comments

Refactor stdout handling in Zig main function for improved output man…#145

Merged
andy1li merged 2 commits intomainfrom
andy/upgrade-zig
Sep 10, 2025
Merged

Refactor stdout handling in Zig main function for improved output man…#145
andy1li merged 2 commits intomainfrom
andy/upgrade-zig

Conversation

@andy1li
Copy link
Member

@andy1li andy1li commented Sep 10, 2025

…agement

  • Consolidated stdout buffer and writer initialization.
  • Replaced stdout.print with std.debug.print for usage message output.
  • Streamlined code by removing redundant stdout initialization.

…agement

- Consolidated stdout buffer and writer initialization.
- Replaced stdout.print with std.debug.print for usage message output.
- Streamlined code by removing redundant stdout initialization.
@andy1li andy1li self-assigned this Sep 10, 2025
cursor[bot]

This comment was marked as outdated.

- Implemented std.process.exit(1) to terminate the program when fewer than 3 arguments are provided.
- Ensured proper usage message is displayed before exiting.
@andy1li andy1li merged commit 8f41997 into main Sep 10, 2025
28 checks passed
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.

1 participant