Fix optional usage in README example

This commit is contained in:
Bob Farrell 2024-03-03 15:02:17 +00:00 committed by Felix Queißner
parent 89f18a104d
commit 062303e29f

View file

@ -41,7 +41,7 @@ const options = argsParser.parseForCurrentProcess(struct {
}, argsAllocator, .print) catch return 1;
defer options.deinit();
std.debug.print("executable name: {s}\n", .{options.executable_name});
std.debug.print("executable name: {?s}\n", .{options.executable_name});
std.debug.print("parsed options:\n", .{});
inline for (std.meta.fields(@TypeOf(options.options))) |fld| {