-
Notifications
You must be signed in to change notification settings - Fork 27
Unreachable code when printing help menu #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mitchelldw01 Thanks for reporting. I can reproduce this issue. It happens when you call with |
The error does not happen if there is no Here is the error
It can be also a bug in the zig build system. This issue in zig ziglang/zig#19973 seems to be related. |
@mitchelldw01 I cannot reproduce this error any more with |
I ran across a bug (user error?) where the program panics with an
unreachable code
error when trying to print help text. It occurs specifically when trying to use an array option on a subcommand. Here is a minimal example that produces the error:I can then cause the error by running
zig build run -- dev --help
.I'm using Zig version 0.13.0-dev.266+0b0625ccf, but this occurs on version 0.12.0 as well.
I'm using the latest zig-cli version from this commit
9a94c4803a52e54c26b198096d63fb5bde752da2
.The text was updated successfully, but these errors were encountered: