forked from mirror/vulkan-zig
Adapt to new ArgsIterator api
This commit is contained in:
@@ -10,13 +10,13 @@ pub fn main() !void {
|
|||||||
defer arena.deinit();
|
defer arena.deinit();
|
||||||
const allocator = arena.allocator();
|
const allocator = arena.allocator();
|
||||||
|
|
||||||
var args = std.process.args();
|
var args = try std.process.argsWithAllocator(allocator);
|
||||||
const prog_name = (try args.next(allocator)) orelse return error.ExecutableNameMissing;
|
const prog_name = args.next() orelse return error.ExecutableNameMissing;
|
||||||
|
|
||||||
var maybe_xml_path: ?[]const u8 = null;
|
var maybe_xml_path: ?[]const u8 = null;
|
||||||
var maybe_out_path: ?[]const u8 = null;
|
var maybe_out_path: ?[]const u8 = null;
|
||||||
|
|
||||||
while (try args.next(allocator)) |arg| {
|
while (args.next()) |arg| {
|
||||||
if (std.mem.eql(u8, arg, "--help") or std.mem.eql(u8, arg, "-h")) {
|
if (std.mem.eql(u8, arg, "--help") or std.mem.eql(u8, arg, "-h")) {
|
||||||
@setEvalBranchQuota(2000);
|
@setEvalBranchQuota(2000);
|
||||||
try stderr.writer().print(
|
try stderr.writer().print(
|
||||||
|
|||||||
Reference in New Issue
Block a user