Okay… looks like I was able to get this running by using a custom test runner which bypasses the panic. So i copied the default test_runner.zig to my src directory (renaming to test_runner_custom.zig),
changed the line: @panic(“unrecognized command line argument”);
to:
“listen=false;”
then reran the test as:
zig test args.zig --test-cmd-bin --test-cmd “hello” --test-runner .\test_runner_custom.zig
I guess I am satisfied with this for now, just it seems like i should be able to do something simple like:
zig test args.zig --arg1 hello