I wrote a small command line argument parser and I would now like to test it. The parser takes a std.process.Args.Iterator for initialization like so:
const args: std.process.Args = .{
.vector = &.{ "--asdf", "--qwerty", "--", "-abc", "waow", "woah", "hmmm" },
};
var iter: ArgsIterator = .init(args.iterate());
Which works great… on linux. But this test can’t run on windows and some other targets because the type of .vector is different.
Is there any platform-agnostic way to create a std.process.Args instance for testing purposes?